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
operator new / delete
Two-phase sample with VC++ 2015
Not an overflow
LinkedList
Temp 1
Static cast of Enum
hangman
Zero length array as a class member
std::function ambiguity vc++
unresolved external symbol