summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/object.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/object.h b/src/object.h
index d1d476c8..89da0fd8 100644
--- a/src/object.h
+++ b/src/object.h
@@ -70,8 +70,14 @@ public:
*/
explicit Object (std::string id);
- Object (Object const&) = delete;
- Object& operator= (Object const&) = delete;
+ Object(Object const& other)
+ : _id(other._id)
+ {}
+
+ Object& operator=(Object const& other) {
+ _id = other._id;
+ return *this;
+ }
virtual ~Object () {}