Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
MSVC lambda bug
// This file is a "Hello, world!" in C++ language by GCC for wandbox. #include <iostream> #include <cstdlib> #include <functional> namespace N { struct S { static std::function<std::function<void()>()> x; }; std::function<std::function<void()>()> S::x = [] { return [] {}; }; } int main() { std::cout << "Hello, Wandbox!" << std::endl; } // GCC reference: // https://gcc.gnu.org/ // C++ language references: // https://msdn.microsoft.com/library/3bstk3k5.aspx // http://www.cplusplus.com/ // https://isocpp.org/ // http://www.open-std.org/jtc1/sc22/wg21/ // Boost libraries references: // http://www.boost.org/doc/
run
|
edit
|
history
|
help
0
sharedptr emptiness
MyCodeWindows
C++ quine
Problem_onoff_3
Cross-platform multithreading minimal example (g++ and cl.exe)
wcstombs_s wide string conversion with multibyte chars and locale + concatenation
hangman
fun
Memory example
Implements.cpp