|
Boost Users : |
Subject: [Boost-users] shared_ptr and inheritance
From: Daniele Barzotti (daniele.barzotti_at_[hidden])
Date: 2009-10-22 04:21:12
Maybe this is a simple question but...
Suppose to have:
template<typename T>
class Base {...};
template<typename T>
class Derived : public Base<T> {...};
and
shared_ptr< Base<T> > BasePtr;
shared_ptr< Derived<T> > DerivedPtr;
How can assign BasePtr to DerivedPtr?
Thanks
Daniele.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net