PluginUnavailable: perfect forwarding in the constructor
This commit is contained in:
parent
b1b630a4cc
commit
508e522188
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user