mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-29 12:50:35 +00:00
19 lines
260 B
C++
19 lines
260 B
C++
#include "lib.h"
|
|
|
|
struct Derived_Private : public Base
|
|
{
|
|
virtual ~Derived_Private()
|
|
{ printf("in Derived_Private destructor\n"); }
|
|
};
|
|
|
|
Base * GetPrivate()
|
|
{
|
|
return new Derived_Private();
|
|
}
|
|
|
|
void Destroy(Base * pb)
|
|
{
|
|
delete pb; // Virtual call #1
|
|
}
|
|
|