Language
C++
Compiler
gcc HEAD 10.0.0 20190527 (experimental)
Options
Warnings
Boost 1.69.0
C++17
no pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.69.0/gcc-head/include -std=c++17 Exit Code:
1
Author
anonymous
almost 7 years ago
C++
gcc HEAD 10.0.0 20190527 (experimental)
Author
anonymous
almost 7 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.69.0/gcc-head/include -std=c++17 prog.cc: In function 'int main()':
prog.cc:39:9: error: no matching function for call to 'func(C&)'
39 | func(c); // ERROR
| ^
prog.cc:26:6: note: candidate: 'template<class T> void func(const AP<T>&)'
26 | void func(AP<T> const& a)
| ^~~~
prog.cc:26:6: note: template argument deduction/substitution failed:
prog.cc:39:9: note: 'C' is not derived from 'const AP<T>'
39 | func(c); // ERROR
| ^