From 508e52218809651ca725778b8c789a1434c2c203 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 29 Mar 2019 17:17:45 +0100 Subject: [PATCH] PluginUnavailable: perfect forwarding in the constructor --- src/PluginUnavailable.hxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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