Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
fun
//g++ 5.4.0 #include <iostream> #include <functional> int main() { bool i = true; std::function<bool(void)> f; if (i) f = []() -> bool { return true; }; else f = []() -> bool { return false; }; f(); return 0; }
run
|
edit
|
history
|
help
0
Shadow pointer member variable
typeid VC++
VC++ error C2440 with combined use of non-type template parameters
list multiply
Operators overloading
Visual Studio expand modified
no-thread
C++ instantiation
dharm1
#32