diff --git a/include/spdlog/details/err_helper.h b/include/spdlog/details/err_helper.h index f8285660..5121304e 100644 --- a/include/spdlog/details/err_helper.h +++ b/include/spdlog/details/err_helper.h @@ -19,7 +19,7 @@ class SPDLOG_API err_helper { public: err_helper() = default; err_helper(const err_helper& other); - err_helper(err_helper&& other); + err_helper(err_helper&& other) noexcept;; void handle_ex(const std::string& origin, const source_loc& loc, const std::exception& ex) noexcept; void handle_unknown_ex(const std::string& origin, const source_loc& loc) noexcept; void set_err_handler(err_handler handler); diff --git a/src/details/err_helper.cpp b/src/details/err_helper.cpp index 550d21c4..d4441aa8 100644 --- a/src/details/err_helper.cpp +++ b/src/details/err_helper.cpp @@ -12,7 +12,7 @@ err_helper::err_helper(const err_helper &other) : custom_err_handler_(other.custom_err_handler_), last_report_time_(other.last_report_time_) {} -err_helper::err_helper(err_helper &&other) +err_helper::err_helper(err_helper &&other) noexcept : custom_err_handler_(std::move(other.custom_err_handler_)), last_report_time_(other.last_report_time_) {}