Language
C++
Compiler
gcc HEAD 10.0.0 20190801 (experimental)
Options
Warnings
Boost 1.70.0
C++2a(GNU)
no pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.70.0/gcc-head/include -std=gnu++2a
8
Exit Code:
0
Author
anonymous
over 5 years ago
C++
gcc HEAD 10.0.0 20190801 (experimental)
Author
anonymous
over 5 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.70.0/gcc-head/include -std=gnu++2a
prog.cc: In instantiation of 'type change(type, std::pair<short int, short int>) [with type = int]':
prog.cc:29:35: required from here
prog.cc:18:48: warning: narrowing conversion of 'number' from 'int' to 'long long unsigned int' [-Wnarrowing]
18 | bitset<numeric_limits<type>::digits> bits {number};
| ^~~~~~
8