Saturday, August 1, 2009

Smart Pointer

You can assign a shared_ptr type to another shared_ptr type
if there is relationship between the two.

shared_ptr(Human) sph;
shared_ptr(Staff) sps;
sps = sph; -> OK

No comments: