Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 5 years ago

Language

C++

Compiler

clang HEAD 10.0.0 (https://github.com/llvm-mirror/clang.git 3441aaff8506ac0252f9bba9d1ce117cf35906ce) (https://github.com/llvm-mirror/llvm.git ae7ce179222e4d642717fbf814ef60ffb12bb3c1)

Options
Warnings
Boost 1.69.0
C++2a
no pedantic

Author

anonymous

over 5 years ago

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.69.0/clang-head/include -std=c++2a
prog.cc:21:3: error: call to 'invoke' is ambiguous
  invoke(*[]{ return 30; });
  ^~~~~~
prog.cc:7:6: note: candidate function
void invoke(int(*f)(void)) {
     ^
prog.cc:12:6: note: candidate function
void invoke(int(&f)(void)) {
     ^
1 error generated.
Exit Code:
1