Boost logo

Boost Users :

From: Okko Willeboordse (trash_at_[hidden])
Date: 2005-10-14 13:46:45


David Abrahams wrote:
> "Piyush Kapadia" <piyush.kapadia_at_[hidden]> writes:
>
>> Though catch(.) statement allows catching exception not associated with any
>> class, it leads to ambiguous condition as there is no way to have any error
>> message with it.
>>
>>
>>
>> Does Boost provide any means to be able to print stack trace when exception
>> is caught ?
>
> No, Boost doesn't provide that. It isn't possible to implement that
> feature portably; in fact by the time you reach catch(...) the stack
> trace information may be completely gone.
>

Agree with that. For instance the microsoft visual studio compiler
implemented C++ exceptions on top of windows structured exceptions.
Totally compiler depended. Using this however yields a method
of retrieving the stack trace for this compiler.
See http://blog.kalmbachnet.de/files/StackWalker.zip


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net