aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2016-02-04 20:39:36 -0800
committerYuri Kunde Schlesner <yuriks@yuriks.net>2016-02-04 20:39:36 -0800
commit03673665db4ff10c4f0b3daab7deef32dfbffdc4 (patch)
treec5578b5d591ebd6b97b80b0a4f97bdb37888c864 /src
parent11f8d32e4199b91032721a6820e804cac50a4aaf (diff)
parente9114a6976ed4fb72e892e8e9aa18bf79b1776f2 (diff)
Merge pull request #1392 from lioncash/move
backend: defaulted move constructor/assignment
Diffstat (limited to 'src')
-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 c1f4d08e46..795d42ebd4 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;
};
/**