Author
anonymous
over 7 years ago
Language
Compiler
Options
Author
anonymous
over 7 years ago
$
prog.cc: In function 'int main()':
prog.cc:10:12: error: invalid initialization of reference of type 'const std::vector<B>&' from expression of type 'std::vector<D>'
fun(vec); // not possible!
^
prog.cc:6:6: note: in passing argument 1 of 'void fun(const std::vector<B>&)'
void fun(const std::vector<B>&) {}
^~~
Exit Code:
1