diff options
Diffstat (limited to 'src/PortID.hpp')
-rw-r--r-- | src/PortID.hpp | 18 |
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, ©.id, sizeof(id)); - } + PortID(const PortID& copy) = default; + PortID& operator=(const PortID& copy) = default; - PortID& operator=(const PortID& copy) - { - if (© != this) { - type = copy.type; - memcpy(&id, ©.id, sizeof(id)); - } + PortID(PortID&& id) = default; + PortID& operator=(PortID&& id) = default; - return *this; - } + ~PortID() = default; Type type = Type::nothing; |