diff --git a/include/cista/containers/vecvec.h b/include/cista/containers/vecvec.h index cb956d3c..3a56b3dd 100644 --- a/include/cista/containers/vecvec.h +++ b/include/cista/containers/vecvec.h @@ -74,8 +74,10 @@ struct basic_vecvec { verify(n >= size(), "bucket::grow: new size < old size"); auto const growth = n - size(); - map_->data_.insert(std::next(std::begin(map_->data_), bucket_end_idx()), - growth, value); + map_->data_.insert( + std::next(std::begin(map_->data_), bucket_end_idx()), + static_castdata_)::size_type>(growth), + value); for (auto i = i_ + 1; i != map_->bucket_starts_.size(); ++i) { map_->bucket_starts_[i] += growth; }