Skip to content

Instantly share code, notes, and snippets.

@taeguk
Last active August 9, 2018 06:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taeguk/dac7a5a3037d215670f6a06fee447559 to your computer and use it in GitHub Desktop.
Save taeguk/dac7a5a3037d215670f6a06fee447559 to your computer and use it in GitHub Desktop.
maybe visual c++ 2015 Update 3 Bug?
// Test on MSVC 2015 Update 3
#include <exception>
#include <typeinfo>
template <typename T>
class A : T
{
};
template <typename T>
A<T> MakeA(T&&)
{
return{};
}
int main(int argc, char **argv)
{
typeid(A<std::exception>()); // OK.
typeid(MakeA(std::exception())); // Linking Fail.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment