Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-08-14 06:46:54

From: "Eric Woodruff" <Eric.Woodruff_at_[hidden]>
> Do you not see the shared_ptr policies as being useful, or even necessary
> sometimes? The templated copy constructor is an attempt at faking
> inheritance.

Wrong. The templated copy constructor emulates standard pointer conversions,
not inheritance.

> Personally, I think it would fix all of the exception issues. Many things
> revolve around shared_ptr in my opinion (I also think that there should be
> shared_ptr boost::New<> as I've probably mentioned before.)
> I hate to give away my evil scheme but...
> My ideal usage would be to
> throw boost::New<std::invalid_argument> ("opinions are subjective");

This assumes that you can modify the code that throws. If you can, you
probably can modify the exception class to inherit from clonable_exception
(or whatever.)

Boost list run by bdawes at, gregod at, cpdaniel at, john at