David Abrahams wrote:
"Piyush Kapadia"
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