This commit is contained in:
Hans Dembinski
2016-06-22 23:04:32 -04:00
parent 7406aff573
commit d77d7212db

View File

@@ -133,12 +133,11 @@ private:
typename disable_if<is_same<T, wtype>, void>::type
increase_impl(size_type i)
{
typedef typename next_storage_type<T>::type U;
T& b = static_cast<T*>(buffer_)[i];
if (b == std::numeric_limits<T>::max())
{
grow_impl<T>();
increase_impl<U>(i);
increase_impl<typename next_storage_type<T>::type>(i);
}
else {
++b;