mirror of
https://github.com/gabime/spdlog.git
synced 2025-02-05 04:06:46 +08:00
Fixed warning about move
This commit is contained in:
parent
5dce654473
commit
9673c1ba09
@ -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);
|
||||
|
@ -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_) {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user