Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Visual C++ template instantiation
#include <iostream> #include <string> template <int& T>struct NonTypeParameter { }; template <typename T> class Holder{ public: static int init; }; int lala=0; template <typename T> class InitCRTP{ public: using dummy=NonTypeParameter<Holder<T>::init>; }; template <typename T> int Holder<T>::init = lala++; class WantInit : public InitCRTP<WantInit>{}; int main(){ std::cout << lala << std::endl; }
run
|
edit
|
history
|
help
0
hangman
calling convention is part of type(?)
Increment pointer to struct
MSVC_example_fscanf_s_and_chars_wchars
no-thread
seh exception in constructor memory leak
Wide string conversion with multibyte chars and locale
wcstombs_s wide string conversion with multibyte chars and locale + concatenation
RTTI Test
default