summaryrefslogtreecommitdiffstats
path: root/src/PortID.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-11-27 17:58:11 +0100
committerDavid Robillard <d@drobilla.net>2020-11-27 21:42:52 +0100
commit96b68f0c39b02b41f96245cedcc156c60c3317e2 (patch)
tree7d53160bb696be28dc637314b6b9d377ff66a7e3 /src/PortID.hpp
parentf66e011d34fa511690e5b4863849ac9104f08d9d (diff)
downloadpatchage-96b68f0c39b02b41f96245cedcc156c60c3317e2.tar.gz
patchage-96b68f0c39b02b41f96245cedcc156c60c3317e2.tar.bz2
patchage-96b68f0c39b02b41f96245cedcc156c60c3317e2.zip
Explicitly delete or define all special member functions
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;