Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 3 years ago

Language

C++

Compiler

clang HEAD 13.0.0 (https://github.com/llvm/llvm-project.git c4ed142e695f14ba5675ec6d12226ee706329a0f)

Options
Warnings
Boost 1.73.0
C++17(GNU)
no pedantic

Author

anonymous

over 3 years ago

tuple_like.hpp

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/clang-head/include -std=gnu++17
prog.cc:68:16: warning: unused variable '[b, c]' [-Wunused-variable]
    const auto [b, c] = in<int, int>();                 // ok
               ^
prog.cc:72:16: warning: unused variable '[h, i]' [-Wunused-variable]
    const auto [h, i] = in<int, std::pair<int, int>>();           // ng: 質問 1
               ^
prog.cc:69:16: warning: unused variable 'd' [-Wunused-variable]
    const auto d = in<int>([](auto& x) { --x; });  // ok
               ^
prog.cc:71:16: warning: unused variable 'g' [-Wunused-variable]
    const auto g = in<int>([](auto& x) { --x; });                 // ng: 質問 2
               ^
prog.cc:67:16: warning: unused variable 'a' [-Wunused-variable]
    const auto a = in<int>();                           // ok
               ^
prog.cc:70:16: warning: unused variable '[e, f]' [-Wunused-variable]
    const auto [e, f] = in<int, int>([](auto& x) { --x; });  // ng: 質問 3
               ^
6 warnings generated.
Exit Code:
0