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
infix to postfix v 3.0
Chord Note Finder
trying to find if reinterpret_cast preserves calling convention
<string> Indirect include of <errno.h> with VSC++
std::function ambiguity vc++
Increment pointer to struct
Template function declaration to avoid usage of template in T::template f<int>()
Static cast of Enum
Visual C++ template instantiation
Error with move capture of a const ref in a lambda function