You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
libexopt/src/util.cpp

16 lines
286 B

#include <string>
#include <stdexcept>
#include <util.hh>
namespace exopt {
namespace util [[gnu::visibility("internal")]] {
[[noreturn, gnu::noinline, gnu::cold]]
void throw_runtime(std::string_view&& msg) {
throw std::runtime_error(std::string{std::move(msg)});
}
}
}