Boost logo

Boost :

From: Dave Abrahams (abrahams_at_[hidden])
Date: 2000-03-15 23:40:05

on 3/15/00 4:02 PM, Miki Jovanovic at miki_at_[hidden] wrote:

> 1) dynamic_cast_from might behave little better is written as below.
> What I did not like with the previous version was that if the contained
> object destructor threw an exception, the value of the smart pointer
> would have beed NULL. Version below would actually do the assignment
> correctly, even if the exception was thrown. Also, I there should be a
> small performance improvement.

If our smart pointers do not require that the objects they refer to _not_
throw exceptions from their destructors, they should. All the same, if
nothing is being sacrificed to get this "improvement", there is no harm in


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