class A{protected:class B{}; public:void callB(B* b){}B* getB(){return 0;}}; int main(){A a;//A::B* b; //NOT OKa.callB(a.getB()); //OKa.callB(0); //OK}
Standard input is empty
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!