Skip to content

Instantly share code, notes, and snippets.

@stepancheg
Created September 25, 2012 07:23
Show Gist options
  • Save stepancheg/3780446 to your computer and use it in GitHub Desktop.
Save stepancheg/3780446 to your computer and use it in GitHub Desktop.
template <typename T>
class foo {};
int main() {
foo<1> x;
return 0;
}
===
tmp.cpp:5:9: error: template argument for template type parameter must be a type
foo<1> x;
^
tmp.cpp:1:20: note: template parameter is declared here
template <typename T>
^
1 error generated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment