Author
anonymous
over 7 years ago
Language
Compiler
Options
Author
anonymous
over 7 years ago
$
prog.cc: In member function 'void Foo<TT>::foo()':
prog.cc:6:13: error: the value of 'x' is not usable in a constant expression
TT<(x)> tt;
^
prog.cc:1:5: note: 'int x' is not const
int x;
^
prog.cc:6:11: note: in template argument for type 'int'
TT<(x)> tt;
~^~
Exit Code:
1