33 static constexpr int buffer_size = 64;
34 void *backtrace_buffer[buffer_size];
36 mutable std::string message;
39 template <
class... Args>
42 backtrace_size = backtrace(backtrace_buffer, buffer_size);
48 const char *what()
const noexcept {
51 if (backtrace_size > 0)
52 backtrace_fill_stacktrace(message, backtrace_buffer, backtrace_size);
53 return message.c_str();