Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
What exactly is “broken” with Microsoft Visual C++'s two-phase template instantiation?
#include<iostream> #include <typeinfo> typedef double A; template<class T> class B { public: typedef int A; }; template<class T> struct X : B<T> { public: A a; }; int main() { X<int> x; std::cout << "type of a: " << typeid(x.a).name() << std::endl; }
run
|
edit
|
history
|
help
0
codecvt wide string conversion with multibyte chars and locale + concatenation
empty base bug
Dices by GOOSE
binary
7
C++ Macro overload
Waiting for Multiple Objects
Static cast of Enum
infix to postfix v 3.0
WinAPI not accessible