есть такой код:
class AA{
public:
int a;
AA(){
cout << "AA()" << endl;
}
AA(const AA& x){
cout << "const AA()" << endl;
}
operator AA() {
cout << " go AA" << endl;
return AA();
}
};
class BB : public AA{
public:
operator AA() {
cout << " go AA in BB" << endl;
return AA();
}
};
где то в коде...
BB x;
((AA) x);// приводить к вызову конструктора копирования - почему?