From: Joerg Walter (jhr.walter_at_[hidden])
Date: 2002-06-28 00:04:06
----- Original Message -----
From: "David Abrahams" <david.abrahams_at_[hidden]>
Sent: Friday, June 28, 2002 12:46 AM
Subject: Re: [boost] uBLAS formal review
> From: "Joerg Walter" <jhr.walter_at_[hidden]>
> > > ) Why do all dynamic allocations via 'new' are followed by 'if
> > > throw std::bad_alloc'? "new" already throws bad_alloc if memory is
> > exausted.
> > Not under MSVC.
> That's surely fixed for vc7 and even more-surely for 7.1 (though I'm not
> checking). If you absolutely /must/ do this you should go through a
> bottleneck function template for which specializations can be supplied in
> compiled library, to cut down on code bloat in clients.
Alternativly, we could introduce MSVC 6.0's _set_new_handler to boost (just
learned that yesterday at work ;-).
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk