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

PluginUnavailable: perfect forwarding in the constructor

parent b1b630a4
......@@ -29,8 +29,9 @@
*/
class PluginUnavailable final : public std::runtime_error {
public:
explicit PluginUnavailable(const char *msg)
:std::runtime_error(msg) {}
template<typename M>
explicit PluginUnavailable(M &&msg) noexcept
:std::runtime_error(std::forward<M>(msg)) {}
};
#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