Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2003-08-28 09:31:37


E. Gladyshev wrote:
[...]
> I am actually using a separate heap in my general purpose exception
> handler.
> My exception handler is quite complex, it creates a log, compresses
> it, etc. The nice thing about it that I can still use STL containers
> while processing exceptions. All I had to do is to implement a
> protected allocator. I had to write a simple smart pointer for my
> handler to work around Boost limitations. Basically in my handler,
> I could use almost nothing from Boost except the Metaprogramming stuff.

You can use all smart pointers except shared_ptr and shared_array as they do
not allocate any memory. In particular, intrusive_ptr is a good candidate if
memory is a concern as it has smaller memory footprint than shared_ptr.

You can also use Boost.Regex, it is completely allocator-enabled. ;-)


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