boostorg / stacktrace

C++ library for storing and printing backtraces.
https://boost.org/libs/stacktrace
422 stars 69 forks source link

How to build boost_stacktrace_from_exception #152

Closed meastp closed 6 months ago

meastp commented 6 months ago

The library boost_stacktrace_from_exception described in the documentation[1] isn't built by default, it seems, and I can't find any documentation about it (almost no results from google).

How do I build it?

Do I have to use dynamic or static linking?

[1] https://www.boost.org/doc/libs/master/doc/html/stacktrace/getting_started.html#stacktrace.getting_started.stacktrace_from_arbitrary_except

apolukhin commented 6 months ago

What version of boost are you using?

apolukhin commented 6 months ago

The boost_stacktrace_from_exception was not released yet, you should take the develop version of the Boost.Stacktrace library to use it. The boost_stacktrace_from_exception would first appear in Boost 1.85

meastp commented 6 months ago

@apolukhin Aaah, thank you - it didn't occour to me that I was looking at the dev documentation. I'm really looking forward to this feature, then - it will be very, very useful.

I saw multiple (two?) iso c++ papers on variants of this feature - is there any progress or were both/all papers stopped when ewg evaluated them?

apolukhin commented 6 months ago

There's no progress in this feature standardization as the feedback on the feature was mixed.

So I'm planning to provide the functionality in Boost, gather feedback and gain more experience in the topic. Meanwhile people will get used to the feature. After that I hope that the the discussion in WG21 would go more smooth.