Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 4 years ago

Language

C++

Compiler

gcc HEAD 12.0.0 20210717 (experimental)

Options
Warnings
Boost 1.73.0
C++14
no pedantic

Author

anonymous

almost 4 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-head/include -std=c++14
prog.cc: In function 'void print(const TupType&, std::index_sequence<I ...>)':
prog.cc:24:65: warning: fold-expressions only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions]
   24 |     (..., (std::cout << (I == 0? "" : ", ") << std::get<I>(_tup)));
      |                                                                 ^
(1, 2, 3, 4)
(1, 1.41421, 1.73205, 2)
Exit Code:
0