diff --git a/src/PluginUnavailable.hxx b/src/PluginUnavailable.hxx index a562b3890..77e6f269a 100644 --- a/src/PluginUnavailable.hxx +++ b/src/PluginUnavailable.hxx @@ -29,8 +29,9 @@ */ class PluginUnavailable final : public std::runtime_error { public: - explicit PluginUnavailable(const char *msg) - :std::runtime_error(msg) {} + template + explicit PluginUnavailable(M &&msg) noexcept + :std::runtime_error(std::forward(msg)) {} }; #endif