diff --git a/src/common/bitsery/traits/small-vector.h b/src/common/bitsery/traits/small-vector.h index d3c4126a..b87ce692 100644 --- a/src/common/bitsery/traits/small-vector.h +++ b/src/common/bitsery/traits/small-vector.h @@ -40,5 +40,21 @@ struct BufferAdapterTraits> : public StdContainerForBufferAdapter< boost::container::small_vector> {}; +// And the same extensions again for the type erased version + +template +struct ContainerTraits> + : public StdContainer, + true, + true> { + static_assert(boost::container::dtl::is_contiguous_container< + boost::container::small_vector_base>::value); +}; + +template +struct BufferAdapterTraits> + : public StdContainerForBufferAdapter< + boost::container::small_vector_base> {}; + } // namespace traits } // namespace bitsery