Language
C++
Compiler
clang 10.0.0
Options
Warnings
Don't Use Boost
C++2a(GNU)
no pedantic
$ clang++ prog.cc -Wall -Wextra -std=gnu++2a
Exit Code:
1
Author
anonymous
almost 5 years ago
C++
clang 10.0.0
Author
anonymous
almost 5 years ago
$ clang++ prog.cc -Wall -Wextra -std=gnu++2a
prog.cc:37:4: error: use of overloaded operator '<<' is ambiguous (with operand types 'Foo' and 'MyEnum')
n << NonOk;
~ ^ ~~~~~
prog.cc:8:10: note: candidate function [with T = MyEnum]
Foo& operator<<(T data)
^
prog.cc:21:4: note: candidate function [with O = Foo]
O& operator<<(O& out, MyEnum var)
^
1 error generated.