diff --git a/include/beman/inplace_vector/inplace_vector.hpp b/include/beman/inplace_vector/inplace_vector.hpp index 2409b23..c3b33be 100644 --- a/include/beman/inplace_vector/inplace_vector.hpp +++ b/include/beman/inplace_vector/inplace_vector.hpp @@ -3,6 +3,7 @@ #include #include #include +#include #include #include #include @@ -75,7 +76,7 @@ struct inplace_vector_array_based_storage { // Selecting this storage type implies: !std::is_trivial_v and Capacity != 0 template struct inplace_vector_bytes_based_storage { - alignas(T) unsigned char elems[Capacity * sizeof(T)]; + alignas(T) std::byte elems[Capacity * sizeof(T)]; T *begin() { return std::launder(reinterpret_cast(elems)); } const T *begin() const {