diff --git a/lib/smallvector.h b/lib/smallvector.h index ed70e14c3..738e53dae 100644 --- a/lib/smallvector.h +++ b/lib/smallvector.h @@ -42,7 +42,16 @@ struct TaggedAllocator : std::allocator }; template -using SmallVector = std::vector>; +class SmallVector : public std::vector> +{ +public: + template + SmallVector(Ts&&... ts) + : std::vector>(std::forward(ts)...) + { + this->reserve(N); + } +}; #endif #endif