9 #include "opthelpers.h"
14 base_exception::~base_exception() = default;
16 void base_exception::setMessage(const char* msg, std::va_list args)
20 int msglen{std::vsnprintf(nullptr, 0, msg, args)};
23 mMessage.resize(static_cast<size_t>(msglen)+1);
24 std::vsnprintf(const_cast<char*>(mMessage.data()), mMessage.length(), msg, args2);