Boost logo

Boost :

From: Daniel Frey (d.frey_at_[hidden])
Date: 2002-10-19 09:48:30


Hi,

I have a (maybe dumb) question. The current version of shared_ptr contains code
like:

typename detail::shared_ptr_traits<T>::reference operator* () const // never throws
{
    BOOST_ASSERT(px != 0);
    return *px;
}

What does "never throws" means wrt BOOST_ASSERT? Isn't this a
contradiction?

Regards, Daniel


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk