Skip to content
Snippets Groups Projects
Commit 34b82493 authored by Jan Trávníček's avatar Jan Trávníček
Browse files

missing move constructor

parent e9d9946c
No related branches found
No related tags found
No related merge requests found
...@@ -13,6 +13,10 @@ ObjectLabel::ObjectLabel(const alib::Object& label) : label(label) { ...@@ -13,6 +13,10 @@ ObjectLabel::ObjectLabel(const alib::Object& label) : label(label) {
   
} }
   
ObjectLabel::ObjectLabel(alib::Object&& label) : label(std::move(label)) {
}
LabelBase* ObjectLabel::clone() const { LabelBase* ObjectLabel::clone() const {
return new ObjectLabel(*this); return new ObjectLabel(*this);
} }
......
...@@ -32,6 +32,8 @@ public: ...@@ -32,6 +32,8 @@ public:
*/ */
explicit ObjectLabel(const alib::Object& label); explicit ObjectLabel(const alib::Object& label);
   
explicit ObjectLabel(alib::Object&& label);
virtual bool operator<(const alib::ObjectBase& other) const; virtual bool operator<(const alib::ObjectBase& other) const;
virtual bool operator>(const alib::ObjectBase& other) const; virtual bool operator>(const alib::ObjectBase& other) const;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment