9 #include "opthelpers.h"
14 /* Defined here to avoid inlining it. */
15 base_exception::~base_exception() { }
17 void base_exception::setMessage(const char* msg
, std::va_list args
)
21 int msglen
{std::vsnprintf(nullptr, 0, msg
, args
)};
24 mMessage
.resize(static_cast<size_t>(msglen
)+1);
25 std::vsnprintf(&mMessage
[0], mMessage
.length(), msg
, args2
);