Boost logo

Boost :

From: Gennaro Prota (gennaro_prota_at_[hidden])
Date: 2002-10-21 07:22:05

Hi Maciej,

just a trivial observation. I hope to have cleverer ones when I'll
dedicate to this the time it deserves:

> static mystate * mystate_slot(std::ios_base &io)
> {
> static int index = std::ios_base::xalloc();
> void *&p = io.pword(index);
> if (io.bad())
> throw std::bad_alloc();

If the code is factored as is this worries me a lot, because with most
implementations you are likely to have a throw during destruction.

>I would like to volunteer, but give me few days. ;)

Me too. So consider me at your disposal - in a few days as well :-)


Boost list run by bdawes at, gregod at, cpdaniel at, john at