Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Type deduction in VC++
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
template<typename dataT> class DemographicNode { public: dataT data; template<typename varT> varT count(const varT dataT::* variable = &dataT::citizens) const { return data.*variable; }; }; struct Data { int variable; }; int main() { Data data{42}; DemographicNode<Data> dn{data}; return dn.count(&Data::variable); }
cl.exe
Show compiler warnings
[
+
] Compiler args
[
+
]
Show input
Compilation time: 1,21 sec, absolute running time: 0,23 sec, absolute service time: 1,45 sec
edit mode
|
history
|
discussion