diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2016-02-05 05:39:36 +0100 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2016-02-05 05:39:36 +0100 |
commit | 7400100da72239979c90a5748a2dfddeb2b1d30a (patch) | |
tree | c5578b5d591ebd6b97b80b0a4f97bdb37888c864 /src/common | |
parent | Merge pull request #1387 from lioncash/func (diff) | |
parent | backend: defaulted move constructor/assignment (diff) | |
download | yuzu-7400100da72239979c90a5748a2dfddeb2b1d30a.tar yuzu-7400100da72239979c90a5748a2dfddeb2b1d30a.tar.gz yuzu-7400100da72239979c90a5748a2dfddeb2b1d30a.tar.bz2 yuzu-7400100da72239979c90a5748a2dfddeb2b1d30a.tar.lz yuzu-7400100da72239979c90a5748a2dfddeb2b1d30a.tar.xz yuzu-7400100da72239979c90a5748a2dfddeb2b1d30a.tar.zst yuzu-7400100da72239979c90a5748a2dfddeb2b1d30a.zip |
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/logging/backend.h | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/src/common/logging/backend.h b/src/common/logging/backend.h index c1f4d08e4..795d42ebd 100644 --- a/src/common/logging/backend.h +++ b/src/common/logging/backend.h @@ -27,25 +27,9 @@ struct Entry { std::string message; Entry() = default; + Entry(Entry&& o) = default; - // TODO(yuriks) Use defaulted move constructors once MSVC supports them -#define MOVE(member) member(std::move(o.member)) - Entry(Entry&& o) - : MOVE(timestamp), MOVE(log_class), MOVE(log_level), - MOVE(location), MOVE(message) - {} -#undef MOVE - - Entry& operator=(const Entry&& o) { -#define MOVE(member) member = std::move(o.member) - MOVE(timestamp); - MOVE(log_class); - MOVE(log_level); - MOVE(location); - MOVE(message); -#undef MOVE - return *this; - } + Entry& operator=(Entry&& o) = default; }; /** |