Language
C++
Compiler
gcc 10.1.0
Options
Boost 1.73.0
C++2a
no pedantic
$ g++ prog.cc -I/opt/wandbox/boost-1.73.0/gcc-10.1.0/include -std=c++2a
Exit Code:
1
Author
anonymous
over 4 years ago
C++
gcc 10.1.0
Author
anonymous
over 4 years ago
$ g++ prog.cc -I/opt/wandbox/boost-1.73.0/gcc-10.1.0/include -std=c++2a
prog.cc: In function 'int main()':
prog.cc:24:21: error: call of overloaded 'f<unsigned int>()' is ambiguous
24 | f<unsigned int>();
| ^
prog.cc:15:6: note: candidate: 'void f() [with T = unsigned int]'
15 | void f() { std::cout << "AnyType" << std::endl; }
| ^
prog.cc:17:6: note: candidate: 'void f() [with T = unsigned int]'
17 | void f() { std::cout << "Int" << std::endl; }
| ^
prog.cc:19:6: note: candidate: 'void f() [with T = unsigned int]'
19 | void f() { std::cout << "UInt" << std::endl; }
| ^