Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

C++

Compiler

gcc HEAD 10.0.0 20190519 (experimental)

Options
Warnings
Boost 1.70.0
C++2a(GNU)
no pedantic
Raw compiler options
-Werror -Wuseless-cast

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.70.0/gcc-head/include -std=gnu++2a -Werror -Wuseless-cast
prog.cc: In function 'int main()':
prog.cc:11:77: error: useless cast to type 'long unsigned int' [-Werror=useless-cast]
   11 |     long unsigned int size = static_cast<long unsigned int>(test_vect.size());
      |                                                                             ^
cc1plus: all warnings being treated as errors
Exit Code:
1