$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Eric Woodruff (Eric.Woodruff_at_[hidden])
Date: 2002-08-16 09:37:58
I rewote it. Look at the template specialization...
----- Original Message -----
From: Gennadiy Rozental
Newsgroups: gmane.comp.lib.boost.devel
Sent: Friday, 2002:August:16 2:36 AM
Subject: Re: shared_ptr inheritance relationship
> 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.
_______________________________________________
Unsubscribe & other changes:
http://listarchives.boost.org/mailman/listinfo.cgi/boost