Boost logo

Boost :

From: Kevin Scarr (kscarr_at_[hidden])
Date: 2008-03-26 06:56:42

Daniel Frey wrote:

> Yepp, but I think it's not relevant. Does it guarantee to never throw
> when used correctly? A lot of exception guarantees expect dtor's to
> never throw, although in theory they could. asserts (which also includes
> BOOST_ASSERT) are meant to be never triggered when used correctly,
> right? So a guarantee like "never throws" always assumes correct usage.

Ok. I take the approach "never throws" actually means "never throws"
regardless of usage.

> Also, my question is not about the current *implementation* (or any
> specific implementation at all), but about the *interface* shared_ptrs
> intends to provide. What happens if I switch to GCC's implementation of
> std::shared_ptr in the future? Or some other compiler/platform?

Sorry, I thought you were asking about boost::shared_ptr. I did not know
that a std::shared_ptr had been defined. If it has, then you would need
to look to its documentation.


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