Boost logo

Boost :

From: Gennadiy Rozental (gennadiy_at_[hidden])
Date: 2002-08-16 01:36:36


> typedef boost::shared_ptr<Child, boost::inherits<HRoot> > HChild;
> class shared_ptr : public InheritancePolicy::super (HRoot in this case)
> ...
> try {
> throw HChild (new Child);
> }
> catch (HRoot root) {
> ...
 }

This does not work. It is not only double the size of smart_ptr, but catched
object is empty.
Do I see somethig wrong?

Gennadiy.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk