Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 6 years ago

Language

C++

Compiler

gcc HEAD 9.0.0 20181227 (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: In function 'constexpr T get()':
prog.cc:13:27: error: static assertion failed: Lambda expression is evaluated.
   13 |     else static_assert(S{}(), "Lambda expression is evaluated.");
      |                        ~~~^~
Exit Code:
1