Make UUID trivially copyable again
Change-Id: I26426a2f1dbe48a1f07b8d94f533579c5716865f
Signed-off-by: Brian Silverman <bsilver16384@gmail.com>
diff --git a/aos/uuid.h b/aos/uuid.h
index 3e3eac8..b03e074 100644
--- a/aos/uuid.h
+++ b/aos/uuid.h
@@ -43,11 +43,9 @@
// Default constructor which builds an uninitialized UUID. Use one of the
// static methods if you want something more useful.
constexpr UUID() : data_() {}
- constexpr UUID(const UUID &uuid) : data_(uuid.data_) {}
+ constexpr UUID(const UUID &uuid) = default;
- void operator=(const UUID &other) {
- memcpy(data_.data(), other.data_.data(), kDataSize);
- }
+ constexpr UUID &operator=(const UUID &other) = default;
// Packs this UUID into a flatbuffer as a string.
flatbuffers::Offset<flatbuffers::String> PackString(