Bring back move implementation of async_msg move ctor and assignment since VS doesn't support it
This commit is contained in:
parent
405ff5100f
commit
9e54057aaa
@ -64,9 +64,21 @@ class async_log_helper
|
|||||||
async_msg() = default;
|
async_msg() = default;
|
||||||
~async_msg() = default;
|
~async_msg() = default;
|
||||||
|
|
||||||
async_msg(async_msg&& other) = default;
|
async_msg(async_msg&& other) SPDLOG_NOEXCEPT:
|
||||||
async_msg& operator=(async_msg&& other) = default;
|
logger_name(std::move(other.logger_name)),
|
||||||
|
level(std::move(other.level)),
|
||||||
|
time(std::move(other.time)),
|
||||||
|
txt(std::move(other.txt))
|
||||||
|
{}
|
||||||
|
|
||||||
|
async_msg& operator=(async_msg&& other) SPDLOG_NOEXCEPT
|
||||||
|
{
|
||||||
|
logger_name = std::move(other.logger_name);
|
||||||
|
level = other.level;
|
||||||
|
time = std::move(other.time);
|
||||||
|
txt = std::move(other.txt);
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
// never copy or assign. should only be moved..
|
// never copy or assign. should only be moved..
|
||||||
async_msg(const async_msg&) = delete;
|
async_msg(const async_msg&) = delete;
|
||||||
async_msg& operator=(async_msg& other) = delete;
|
async_msg& operator=(async_msg& other) = delete;
|
||||||
|
Loading…
Reference in New Issue
Block a user