diff --git a/include/pocketpy/common/vector.hpp b/include/pocketpy/common/vector.hpp index f1ed4d5c..d9316780 100644 --- a/include/pocketpy/common/vector.hpp +++ b/include/pocketpy/common/vector.hpp @@ -284,6 +284,8 @@ struct vector { template struct small_vector { + static_assert(is_pod_v); + alignas(T) char _buffer[sizeof(T) * N]; T* _begin; T* _end;