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

move within creation of moveable set

parent 2920c734
No related branches found
No related tags found
No related merge requests found
...@@ -144,7 +144,7 @@ template<class T> ...@@ -144,7 +144,7 @@ template<class T>
class moveable_set { class moveable_set {
set<T> theSet; set<T> theSet;
public: public:
moveable_set(set<T> param) : theSet(std::move(param)) {} moveable_set( set<T> && param) : theSet(std::move(param)) {}
   
set_move_iterator<typename set<T>::iterator> begin() { set_move_iterator<typename set<T>::iterator> begin() {
return make_set_move_iterator(theSet.begin()); return make_set_move_iterator(theSet.begin());
......
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