Boost logo

Boost :

From: Martin Bonner (martin.bonner_at_[hidden])
Date: 2005-12-08 10:49:28


----Original Message----
From: Peter Dimov [mailto:pdimov_at_[hidden]]
Sent: 08 December 2005 15:40
To: boost_at_[hidden]
Subject: Re: [boost] [boost::throw_exception] and platforms where it
don'tthrow

> And of course in a situation where throw_exception is used to throw
> bad_alloc, an assertion makes even less sense, because there are no
> "logic errors" involved, and presenting the effects of a failed
> assertion to the end user would serve little purpose; the program
> could do nothing to defend itself from the out of memory situation.

But if a library is being used in an exception free environment, maybe
presenting an assertion failure to the user is as good as you can do.

-- 
Martin Bonner
Martin.Bonner_at_[hidden]
Pi Technology, Milton Hall, Ely Road, Milton, Cambridge, CB4 6WZ,
ENGLAND Tel: +44 (0)1223 441434

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