class CBase {
public:
/*...*/
};
typedef CBase * LPBASE;
void process( const LPBASE pBase)
{
/*...*/
}
class CDerived : public CBase
{
/*...*/
};
int main() {
CDerived d;
const CDerived* pd = &d;
process(pd);
return 0;
}
Login in to like
Login in to comment