Language
C++
Compiler
gcc 10.1.0
Options
Warnings
Boost 1.73.0
C++2a(GNU)
no pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-10.1.0/include -std=gnu++2a
Exit Code:
0
Author
anonymous
almost 4 years ago
C++
gcc 10.1.0
Author
anonymous
almost 4 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-10.1.0/include -std=gnu++2a
prog.cc: In instantiation of 'void print(std::span<const T>) [with T = const char]':
prog.cc:17:26: required from 'void print(const std::array<_Tp, _Nm>&) [with T = char; long unsigned int N = 6]'
prog.cc:22:14: required from here
prog.cc:10:14: warning: unused variable 'element' [-Wunused-variable]
10 | for(auto element : container) {
| ^~~~~~~