Polymorphic on smart pointer is allow.
Staff : class Human
shared_ptr(human) sph;
shared_ptr(staff) sps;
list(shared_ptr(human) ) cont;
cont.push(sph); -> OK
cont.push(sps); -> OK
Friday, July 31, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment