Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 6 years ago

Language

C++

Compiler

gcc HEAD 9.0.0 20181019 (experimental)

Options
Warnings
Boost 1.68.0
C++17
-pedantic

Author

anonymous

over 6 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/gcc-head/include -std=c++17 -pedantic
prog.cc: In instantiation of 'main()::<lambda(auto:1&)> [with auto:1 = int]':
prog.cc:32:28:   required from here
prog.cc:22:17: error: static assertion failed
   22 |                 is_array
      |                 ^~~~~~~~
   23 |                 <
      |                 ~
   24 |                     ::std::remove_reference_t<decltype(should_be_array)>
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   25 |                 >::value
      |                 ~
Exit Code:
1