Created
August 11, 2015 16:03
-
-
Save andrey-malets/e59bb935c7c0dcddaf8a to your computer and use it in GitHub Desktop.
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
template<typename> struct T { | |
}; | |
template<typename T> int f(); | |
template<> int f<T<int>>() { | |
return 1; | |
} | |
template<> int f<int>() { | |
return 2; | |
} | |
int main(void) { | |
return f<int>(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment