diff --git a/include/spdlog/common.h b/include/spdlog/common.h index 668889f0..33de4383 100644 --- a/include/spdlog/common.h +++ b/include/spdlog/common.h @@ -151,8 +151,8 @@ public: : runtime_error(msg) { } - spdlog_ex(const std::string &msg, int last_errno) - : runtime_error(msg) + spdlog_ex(std::string msg, int last_errno) + : runtime_error(std::move(msg)) , last_errno_(last_errno) { }