Last active
August 9, 2018 06:48
-
-
Save taeguk/dac7a5a3037d215670f6a06fee447559 to your computer and use it in GitHub Desktop.
maybe visual c++ 2015 Update 3 Bug?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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