Commit 6455e6a0 authored by Quentin Khan's avatar Quentin Khan

variadic_vector: remove useless check in check_capacity

parent 94e9607b
......@@ -831,9 +831,7 @@ private:
bool check_capacity(size_type new_size) {
if(new_size > this->capacity()) {
size_type new_capacity =
std::max(this->capacity(), new_size)
+ this->capacity() + 10;
new_size + this->capacity();
this->reserve(new_capacity);
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment