diff --git a/include/libimp/log.h b/include/libimp/log.h index 155fe83..34a8190 100644 --- a/include/libimp/log.h +++ b/include/libimp/log.h @@ -54,22 +54,22 @@ template constexpr bool has_fn_output_v = has_fn_output::type::value; struct vtable_t { - void (*output)(void *, log::level, std::string &&) noexcept; + void (*output)(void *, log::level, std::string &&); }; template class traits { template static auto make_fn_output() noexcept - -> std::enable_if_t, void (*)(void *, log::level, std::string &&) noexcept> { - return [](void *p, log::level l, std::string &&s) noexcept { + -> std::enable_if_t, void (*)(void *, log::level, std::string &&)> { + return [](void *p, log::level l, std::string &&s) { static_cast(p)->output(l, std::move(s)); }; } template static auto make_fn_output() noexcept - -> std::enable_if_t, void (*)(void *, log::level, std::string &&) noexcept> { - return [](void *, log::level, std::string &&) noexcept {}; + -> std::enable_if_t, void (*)(void *, log::level, std::string &&)> { + return [](void *, log::level, std::string &&) {}; } public: