Skip to content

Commit

Permalink
fixed move assignment operator in dac_vector_dp<>
Browse files Browse the repository at this point in the history
  • Loading branch information
karasikov committed Apr 16, 2021
1 parent 448b350 commit 7b142ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/sdsl/dac_vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class dac_vector_dp
this->swap(other);
}

dac_vector_dp& operator=(dac_vector_dp other) {
dac_vector_dp& operator=(dac_vector_dp&& other) {
this->swap(other);
return *this;
}
Expand Down Expand Up @@ -218,7 +218,7 @@ class dac_vector_dp
lvl--;
bit_sizes.push_back(b);
}
assert(bit_sizes.size() <= max_levels);
assert(bit_sizes.size() <= (unsigned int)max_levels);

size_t total_overflow_size = 0;
for (size_t i = 0; i < c.size(); ++i) {
Expand Down

0 comments on commit 7b142ff

Please sign in to comment.