[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: About memory allocation failures....
From:       Guillaume Laurent <glaurent () telegraph-road ! org>
Date:       2002-03-23 8:25:51
[Download RAW message or body]

On Saturday 23 March 2002 03:04, Schmidt, John wrote:

> The "standard" as set by Bjarne indicates
> bad_alloc
> is the default, but that does not seem to be the case for all compilers.

You don't say. Welcome to C++.

> Setting up your own handler (or using nothrow) IS splitting hairs, but
> saying
> it's an advanced technique is like saying coding a destructor for
> pthread_key_create() is advanced?

No. The latter is an extremely common idiom, applying the RAII "Ressource 
Acquisition Is Initialisation" principle.

-- 
					Guillaume.
					http://www.telegraph-road.org
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic