Created
September 25, 2012 07:23
-
-
Save stepancheg/3780446 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 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