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++2b
no pedantic

Author

anonymous

over 3 years ago

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/clang-head/include -std=c++2b
prog.cc:10:70: warning: unused parameter 'other' [-Wunused-parameter]
    std::enable_if_t<x == n, MyClass<x>> operator&(const MyClass<x> &other) const { std::cout << "1\n"; return {}; }
                                                                     ^
prog.cc:12:44: warning: unused parameter 'other' [-Wunused-parameter]
    MyClass<n> operator&(const MyClass<1> &other) const { std::cout << "2\n"; return {}; }
                                           ^
2 warnings generated.
2
2
1
Exit Code:
0