summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2016-02-05 05:39:36 +0100
committerYuri Kunde Schlesner <yuriks@yuriks.net>2016-02-05 05:39:36 +0100
commit7400100da72239979c90a5748a2dfddeb2b1d30a (patch)
treec5578b5d591ebd6b97b80b0a4f97bdb37888c864
parentMerge pull request #1387 from lioncash/func (diff)
parentbackend: defaulted move constructor/assignment (diff)
downloadyuzu-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
-rw-r--r--src/common/logging/backend.h20
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;
};
/**