Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 6 years ago

Language

C++

Compiler

gcc 8.3.0

Options
Warnings
Boost 1.69.0
C++17
no pedantic

Author

anonymous

over 6 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.69.0/gcc-8.3.0/include -std=c++17
prog.cc: In instantiation of 'constexpr int ival(Ts ...) [with Ts = {char}]':
prog.cc:30:33:   required by substitution of 'template<char ...Vs> std::integral_constant<int, ival(Vs ...)> operator""_i() [with char ...Vs = {'1'}]'
prog.cc:54:30:   required from here
prog.cc:14:23: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare]
     for (int i = 0; i < sizeof...(Vs); i++) {
                     ~~^~~~~~~~~~~~~~~
prog.cc: In function 'int main()':
prog.cc:54:10: warning: variable 'd1' set but not used [-Wunused-but-set-variable]
     auto d1 = DataType(1_et, 1_i);
          ^~
Exit Code:
0