Commit 508e5221 authored by Max Kellermann's avatar Max Kellermann

PluginUnavailable: perfect forwarding in the constructor

parent b1b630a4
...@@ -29,8 +29,9 @@ ...@@ -29,8 +29,9 @@
*/ */
class PluginUnavailable final : public std::runtime_error { class PluginUnavailable final : public std::runtime_error {
public: public:
explicit PluginUnavailable(const char *msg) template<typename M>
:std::runtime_error(msg) {} explicit PluginUnavailable(M &&msg) noexcept
:std::runtime_error(std::forward<M>(msg)) {}
}; };
#endif #endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment