| 466 | /// Returns std::string with the stacktrace in a human readable format; unsafe to use in async handlers. |
| 467 | template <class Allocator> |
| 468 | std::string to_string(const basic_stacktrace<Allocator>& bt) { |
| 469 | if (!bt) { |
| 470 | return std::string(); |
| 471 | } |
| 472 | |
| 473 | return boost::stacktrace::detail::to_string(&bt.as_vector()[0], bt.size()); |
| 474 | } |
| 475 | |
| 476 | /// Outputs stacktrace in a human readable format to the output stream `os`; unsafe to use in async handlers. |
| 477 | template <class CharT, class TraitsT, class Allocator> |
no outgoing calls