Boost logo

Boost :

From: Daniel Frey (d.frey_at_[hidden])
Date: 2008-04-12 11:18:42

On Sat, 2008-04-12 at 17:31 +0300, Peter Dimov wrote:

Wouldn't it be easier to make shared_count(weak_count&) to never throw
and add

if(!pn) boost::throw_exception( boost::bad_weak_ptr() );

to the non-tagged ctor of the shared_ptr?

Regards, Daniel

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