Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 8 years ago

Language

Compiler

Options

Author

anonymous

almost 8 years ago

$
prog.cc:14:6: error: wrong number of template arguments (0, should be 1)
    C<> c2 {&s};
      ^
prog.cc:2:7: note: provided for 'template<class F> class C'
 class C {
       ^
prog.cc:14:14: error: invalid conversion from 'int (*)()' to 'int' [-fpermissive]
    C<> c2 {&s};
              ^
Exit Code:
1