blob: c0b47956bdb1dd1700492202fee893d0aeb5a311 [file] [log] [blame]
#include <stdio.h>
class Base {
public:
Base() { }
virtual ~Base() { }
virtual void A() {
printf("I'm Base::A\n");
}
void B() {
printf("I'm Base::B\n");
}
virtual Base *toBase() {
return static_cast<Base *>(this);
}
};