Created
February 20, 2017 10:59
-
-
Save RossBencina/4374c89052daa73ff5cd928203a69c3c to your computer and use it in GitHub Desktop.
You can't use explicit function specialization at class scope
This file contains 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
class Foo{ | |
template<typename X> | |
void foo() | |
{ | |
} | |
template<> | |
void foo<int>() // error: explicit specialization of 'foo' in class scope | |
{ | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment