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. ;-) _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost