
14 Apr
2008
14 Apr
'08
4:17 p.m.
Peter Dimov wrote:
Note that N2179 doesn't require a copy to be made. If GCC allocates the exception objects on a heap - I have some recollections that it was doing that but I may be wrong No, you're right. It goes through malloc() first, but should that fail, it has a small separate "emergency" area. - it might still be possible to implement current_exception to return a pointer to the active exception object... if there's a way to insert a reference count somewhere inside.
That's a good idea. There *is* a reference count in there. I think I can do something with that. Sebastian