Author
anonymous
over 7 years ago
Language
Compiler
Options
Author
anonymous
over 7 years ago
$
prog.cc:17:22: error: invalid operands to binary expression ('A' and 'ptr<Kid<2> >' (aka 'Kid<2> *'))
static Other<A{} * ptr<Kid>{}> o;
~~~ ^ ~~~~~~~~~~
prog.cc:21:5: note: in instantiation of template class 'Kid<2>' requested here
Kid<2>{};
^
prog.cc:7:15: note: candidate template ignored: could not match 'Parent' against 'Kid'
constexpr int operator*(A, Parent<N>*) { return N; }
^
prog.cc:21:5: warning: expression result unused [-Wunused-value]
Kid<2>{};
^ ~~
1 warning and 1 error generated.
Exit Code:
1