Author
anonymous
over 8 years ago
Language
Compiler
Options
Author
anonymous
over 8 years ago
$
prog.cc: In function 'int main()':
prog.cc:21:11: error: wrong number of template arguments (1, should be 2)
test<5> b(buffer);
^
prog.cc:5:8: note: provided for 'template<long unsigned int S, class T> struct test'
struct test
^~~~
prog.cc:21:21: error: invalid conversion from 'int*' to 'int' [-fpermissive]
test<5> b(buffer);
^
prog.cc:21:13: warning: unused variable 'b' [-Wunused-variable]
test<5> b(buffer);
^
Exit Code:
1