Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

C++

Compiler

clang HEAD 11.0.0 (https://github.com/llvm/llvm-project.git fff6a1b0f1fe57b46379001db75952d2a06eab1f)

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

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.72.0/clang-head/include -std=gnu++2a
prog.cc:14:8: error: overloaded 'operator<<' must be a binary operator (has 6 parameters)
    A& operator<<(ARGS... args){
       ^
prog.cc:28:7: note: in instantiation of function template specialization 'A<int>::operator<<<int, int, int, int, int>' requested here
    a.operator<<(1,2,3,4,5);
      ^
prog.cc:28:7: error: no matching member function for call to 'operator<<'
    a.operator<<(1,2,3,4,5);
    ~~^~~~~~~~~~
prog.cc:14:8: note: candidate template ignored: substitution failure [with ARGS = <int, int, int, int, int>]
    A& operator<<(ARGS... args){
       ^
2 errors generated.
Exit Code:
1