Skip to content

Instantly share code, notes, and snippets.

@RossBencina
Created February 20, 2017 10:59
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 RossBencina/4374c89052daa73ff5cd928203a69c3c to your computer and use it in GitHub Desktop.
Save RossBencina/4374c89052daa73ff5cd928203a69c3c to your computer and use it in GitHub Desktop.
You can't use explicit function specialization at class scope
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