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