New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fast conversion of stacktraces to std::string #57

antoshkka1 opened this Issue Jul 27, 2018 · 0 comments


None yet
1 participant

antoshkka1 commented Jul 27, 2018

/// Outputs stacktrace in a human readable format to std::string; unsafe to use in async handlers.
template <class Allocator>
std::string to_string(const basic_stacktrace<Allocator>& bt) {
    if (bt) {
        return boost::stacktrace::detail::to_string(&bt.as_vector()[0], bt.size());
    } else {
        return std::string();

@apolukhin apolukhin closed this in b8dec8b Jul 28, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment