Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 4 years ago

Language

C++

Compiler

gcc 10.1.0

Options
Warnings
Boost 1.73.0
C++2a(GNU)
no pedantic

Author

anonymous

about 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) {
      |              ^~~~~~~
Exit Code:
0