
3 Oct
2007
3 Oct
'07
1:10 p.m.
On 10/2/07, Emil Dotchevski <emil@revergestudios.com> wrote:
[snip]
[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
Regards, -- Felipe Magno de Almeida