summaryrefslogtreecommitdiff
path: root/src/PluginUnavailable.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-03-29 17:17:45 +0100
committerMax Kellermann <max@musicpd.org>2019-03-29 17:17:45 +0100
commit508e52218809651ca725778b8c789a1434c2c203 (patch)
treeefb6c2f8e2651ab78fa2bf7cb934de69663ccaed /src/PluginUnavailable.hxx
parentb1b630a4cc435e35029b7895b2ff6d6b1ad07552 (diff)
PluginUnavailable: perfect forwarding in the constructor
Diffstat (limited to 'src/PluginUnavailable.hxx')
-rw-r--r--src/PluginUnavailable.hxx5
1 files 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<typename M>
+ explicit PluginUnavailable(M &&msg) noexcept
+ :std::runtime_error(std::forward<M>(msg)) {}
};
#endif