31class backtrace_exception :
public E {
32 static constexpr int buffer_size = 64;
33 void *backtrace_buffer[buffer_size];
35 mutable std::string message;
38 template <
class... Args>
39 explicit backtrace_exception(Args &&...args) : E(std::forward<Args>(args)...) {
40 backtrace_size = absl::GetStackTrace(backtrace_buffer, buffer_size, 1);
43 const char *what()
const noexcept {
46 if (backtrace_size > 0)
47 backtrace_fill_stacktrace(message, backtrace_buffer, backtrace_size);
48 return message.c_str();
TODO: this is not really specific to BMV2, it should reside somewhere else.
Definition applyOptionsPragmas.cpp:24