stacktrace icon indicating copy to clipboard operation
stacktrace copied to clipboard

Typo in the from_current_exception example

Open d4nnie opened this issue 1 year ago • 1 comments

Example from the docs fails to compile:

<source>: In function 'int main()':
<source>:14:62: error: 'from_current_exception' is not a member of 'boost::stacktrace'
   14 |     boost::stacktrace::stacktrace trace = boost::stacktrace::from_current_exception();  // <---
      |                                                              ^~~~~~~~~~~~~~~~~~~~~~
Compiler returned: 1

Obviously, as said in the docs themselves, the full name for from_current_exception will be boost::stacktrace::stacktrace::from_current_exception.

d4nnie avatar Jul 24 '24 16:07 d4nnie

Can I fix this?

NoumanAmir657 avatar Aug 10 '24 09:08 NoumanAmir657

Fixed in https://github.com/boostorg/stacktrace/pull/181

apolukhin avatar Sep 12 '24 07:09 apolukhin