Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 6 years ago

Language

C++

Compiler

gcc HEAD 9.0.0 20181226 (experimental)

Options
Warnings
Boost 1.69.0
C++2a(GNU)
no pedantic

Author

anonymous

over 6 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.69.0/gcc-head/include -std=gnu++2a
prog.cc:5:10: error: 'float' is not a valid type for a template non-type parameter
    5 | template<float>
      |          ^~~~~
prog.cc: In function 'int main()':
prog.cc:12:10: note: invalid template non-type parameter
   12 |     T<1.0>;
      |          ^
Exit Code:
1