Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
vc++ bug?
#include <iostream> #include <cstdlib> volatile int default_value = 1; template<typename...> struct foo { static int value; }; template<typename... Ts> int foo<Ts...>::value = default_value; int x = foo<int>::value; int main() { std::cout << x; }
run
|
edit
|
history
|
help
0
Workaround for https://github.com/Project-OSRM/osrm-backend/pull/4385
Get parameter type
Regex failure
defined(FOO)
Unicode_wcout
Temp 1
Postfix side effect returning 2
hangman
hangman
throwing std::function on MSVC is dangerous