Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 8 years ago

Language

Compiler

Options

Author

anonymous

about 8 years ago

$
prog.cc:5:23: error: template argument 1 is invalid
 auto foo(I i) -> bar<i> {}
                       ^
prog.cc:5:23: error: template argument 1 is invalid
prog.cc:5:23: error: template argument 1 is invalid
prog.cc:5:23: error: template argument 1 is invalid
prog.cc:5:23: error: template argument 1 is invalid
prog.cc:5:18: error: invalid use of template-name 'bar' without an argument list
 auto foo(I i) -> bar<i> {}
                  ^~~
prog.cc:5:18: note: class template argument deduction is only available with -std=c++1z or -std=gnu++1z
prog.cc:2:8: note: 'template<int <anonymous> > struct bar' declared here
 struct bar {};
        ^~~
prog.cc:5:21: error: expected initializer before '<' token
 auto foo(I i) -> bar<i> {}
                     ^
Exit Code:
1