Author
anonymous
over 7 years ago
Language
Compiler
Options
Author
anonymous
over 7 years ago
$
prog.cc:16:41: warning: unused parameter 'other' [-Wunused-parameter]
const Vao& operator=(const Vao& other) override {
^
prog.cc:10:13: warning: call to pure virtual member function 'operator=' has undefined behavior; overrides of 'operator=' in subclasses are not available in the constructor of 'ICopyOnOperator'
this->operator=((const T&)other);
^
prog.cc:14:7: note: in instantiation of member function 'ICopyOnOperator<Vao>::ICopyOnOperator' requested here
class Vao : public ICopyOnOperator<Vao> {
^
prog.cc:5:9: note: 'operator=' declared here
virtual const T& operator=(const T& other) = 0;
^
2 warnings generated.
Pure virtual function called!
Signal:
Aborted