{"action":"created","issue":{"url":"https://api.github.com/repos/simongog/sdsl-lite/issues/282","labels_url":"https://api.github.com/repos/simongog/sdsl-lite/issues/282/labels{/name}","comments_url":"https://api.github.com/repos/simongog/sdsl-lite/issues/282/comments","events_url":"https://api.github.com/repos/simongog/sdsl-lite/issues/282/events","html_url":"https://github.com/simongog/sdsl-lite/issues/282","id":110537893,"number":282,"title":"Is rank_support_v movable?","user":{"login":"danielsaad","id":2043876,"avatar_url":"https://avatars.githubusercontent.com/u/2043876?v=3","gravatar_id":"","url":"https://api.github.com/users/danielsaad","html_url":"https://github.com/danielsaad","followers_url":"https://api.github.com/users/danielsaad/followers","following_url":"https://api.github.com/users/danielsaad/following{/other_user}","gists_url":"https://api.github.com/users/danielsaad/gists{/gist_id}","starred_url":"https://api.github.com/users/danielsaad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielsaad/subscriptions","organizations_url":"https://api.github.com/users/danielsaad/orgs","repos_url":"https://api.github.com/users/danielsaad/repos","events_url":"https://api.github.com/users/danielsaad/events{/privacy}","received_events_url":"https://api.github.com/users/danielsaad/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-08T20:47:10Z","updated_at":"2015-10-09T13:24:27Z","closed_at":"2015-10-09T13:24:27Z","body":"Is rank_support_v movable?\r\nI'm getting an error after this code runs:\r\n```C++\r\nif (this != &other) {\r\n            _b = std::move(other._b);\r\n            _b_rank = std::move(other._b_rank);\r\n            _b_sel = std::move(other._b_sel);\r\n            _C = std::move(other._C);\r\n}\r\n```\r\nbut this is ok:\r\n```C++\r\nif (this != &other) {\r\n            _b = std::move(other._b);\r\n            _b_rank.op\r\n            sdsl::util::init_support(_b_rank,_&b);\r\n            sdsl::util::init_support(_b_sel,&b);\r\n            _C = std::move(other._C);\r\n}\r\n```\r\nI found ```rank_support_v& operator=(rank_support_v&&) = default;``` in the .hpp file."},"comment":{"url":"https://api.github.com/repos/simongog/sdsl-lite/issues/comments/146870878","html_url":"https://github.com/simongog/sdsl-lite/issues/282#issuecomment-146870878","issue_url":"https://api.github.com/repos/simongog/sdsl-lite/issues/282","id":146870878,"user":{"login":"simongog","id":1563206,"avatar_url":"https://avatars.githubusercontent.com/u/1563206?v=3","gravatar_id":"","url":"https://api.github.com/users/simongog","html_url":"https://github.com/simongog","followers_url":"https://api.github.com/users/simongog/followers","following_url":"https://api.github.com/users/simongog/following{/other_user}","gists_url":"https://api.github.com/users/simongog/gists{/gist_id}","starred_url":"https://api.github.com/users/simongog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simongog/subscriptions","organizations_url":"https://api.github.com/users/simongog/orgs","repos_url":"https://api.github.com/users/simongog/repos","events_url":"https://api.github.com/users/simongog/events{/privacy}","received_events_url":"https://api.github.com/users/simongog/received_events","type":"User","site_admin":false},"created_at":"2015-10-09T13:24:27Z","updated_at":"2015-10-09T13:24:27Z","body":"It is movable, but you still have to set the pointer of the moved support structure:\r\n```c++\r\nif (this != &other) {\r\n            _b = std::move(other._b);\r\n            _b_rank = std::move(other._b_rank);\r\n            _b_rank.set_vector(&_b);\r\n            _b_sel = std::move(other._b_sel);\r\n            _b_sel.set_vector(&_b);\r\n            _C = std::move(other._C);\r\n}\r\n```"}}