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
hangman
enable_if::type
hangman
hangman
vector destruction - visual studio
Union and possible undefined behavior
IBE FT ParseFileName
Redeclare with auto
Type deduction in VC++
std::current_exception makes a copy