mirror of
https://github.com/pocketpy/pocketpy
synced 2025-12-07 10:40:16 +00:00
make small_vector works with pod
This commit is contained in:
parent
60e1f77f8d
commit
3dafa7573c
@ -284,6 +284,8 @@ struct vector {
|
||||
|
||||
template <typename T, std::size_t N>
|
||||
struct small_vector {
|
||||
static_assert(is_pod_v<T>);
|
||||
|
||||
alignas(T) char _buffer[sizeof(T) * N];
|
||||
T* _begin;
|
||||
T* _end;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user