summaryrefslogtreecommitdiffstats
path: root/src/common/logging/backend.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2016-02-05 04:39:33 +0100
committerLioncash <mathew1800@gmail.com>2016-02-05 04:39:33 +0100
commitc89e3d595187c0710758014f55e43e924ed3155f (patch)
treec5578b5d591ebd6b97b80b0a4f97bdb37888c864 /src/common/logging/backend.h
parentMerge pull request #1387 from lioncash/func (diff)
downloadyuzu-c89e3d595187c0710758014f55e43e924ed3155f.tar
yuzu-c89e3d595187c0710758014f55e43e924ed3155f.tar.gz
yuzu-c89e3d595187c0710758014f55e43e924ed3155f.tar.bz2
yuzu-c89e3d595187c0710758014f55e43e924ed3155f.tar.lz
yuzu-c89e3d595187c0710758014f55e43e924ed3155f.tar.xz
yuzu-c89e3d595187c0710758014f55e43e924ed3155f.tar.zst
yuzu-c89e3d595187c0710758014f55e43e924ed3155f.zip
Diffstat (limited to '')
-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;
};
/**