Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 6 years ago

Language

C++

Compiler

gcc HEAD 9.0.0 20180808 (experimental)

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

Author

anonymous

over 6 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/gcc-head/include -std=gnu++2a
prog.cc: In function 'int main()':
prog.cc:19:10: error: call of overloaded 'bar(foo<int>&)' is ambiguous
     bar(f); // error
          ^
prog.cc:13:6: note: candidate: 'void bar(foo<const int>)'
 void bar(foo<int const>) {}
      ^~~
prog.cc:14:6: note: candidate: 'void bar(foo<const char*>)'
 void bar(foo<char const *>) {}
      ^~~
Exit Code:
1