Boost logo

Boost :

From: I Wei (i.c.code_at_[hidden])
Date: 2004-10-11 17:35:20


> > No. It is undefined behavior for boost::throw_exception() to return.
> >
> > To quote the throw_exception() docs:
> >
> > Callers of throw_exception are allowed to assume that the
> > function never returns; therefore, if the user-defined
> > throw_exception returns, the behavior is undefined.
>
> It is definitely not a bug. However you might want to consider - purely as a
> QoI issue, of course - to return 'false' instead of 'true' when
> throw_exception returns. ;-)
>
>
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
>
It's very strange. So, does it mean the exception must be enabled if
the throw_exception is used ?


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