Boost logo

Boost :

From: Felipe Magno de Almeida (felipe.m.almeida_at_[hidden])
Date: 2007-10-03 09:10:30

On 10/2/07, Emil Dotchevski <emil_at_[hidden]> wrote:
> > > > [snip]
> >


> > Can't a std::vector<std::pair<void*, infos> > be used?
> That's a big can of worms... You'd have to maintain the lifetime of
> the infos manually.

Yeah, not very pleasant.

> Why do you want to make the infos global anyway? After all, their
> lifetime should be identical to the lifetime of the exception object
> itself; the easiest way to accomplish this is to use a member of the
> exception object to store the info.

I'm just thinking that if boost.exception makes use of dynamic
allocation, then the naive approach isn't that much different (though
a lot worse to implement).
But I'll drop these questions, they won't get anywhere.

> Emil Dotchevski


Felipe Magno de Almeida

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