summaryrefslogtreecommitdiffstats
path: root/src/PortID.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/PortID.hpp')
-rw-r--r--src/PortID.hpp18
1 files changed, 5 insertions, 13 deletions
diff --git a/src/PortID.hpp b/src/PortID.hpp
index 8132639..c29d662 100644
--- a/src/PortID.hpp
+++ b/src/PortID.hpp
@@ -59,21 +59,13 @@ struct PortID
}
#endif
- PortID(const PortID& copy)
- : type(copy.type)
- {
- memcpy(&id, &copy.id, sizeof(id));
- }
+ PortID(const PortID& copy) = default;
+ PortID& operator=(const PortID& copy) = default;
- PortID& operator=(const PortID& copy)
- {
- if (&copy != this) {
- type = copy.type;
- memcpy(&id, &copy.id, sizeof(id));
- }
+ PortID(PortID&& id) = default;
+ PortID& operator=(PortID&& id) = default;
- return *this;
- }
+ ~PortID() = default;
Type type = Type::nothing;