Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
Sorting algorithm comparison
Replace all spaces in a string in C++
msvc compile optimization demo...
hyy
parameter pack workaround
Arrays
1
Computing factorial of an integer with recursion and iteration
What exactly is “broken” with Microsoft Visual C++'s two-phase template instantiation?
PreprocessorVsNamespace
Please log in to post a comment.