We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8799d0b commit cfbc617Copy full SHA for cfbc617
include/beman/inplace_vector/inplace_vector.hpp
@@ -3,6 +3,7 @@
3
#include <algorithm>
4
#include <array>
5
#include <cassert>
6
+#include <cstddef>
7
#include <exception>
8
#include <iterator>
9
#include <limits>
@@ -75,7 +76,7 @@ struct inplace_vector_array_based_storage {
75
76
// Selecting this storage type implies: !std::is_trivial_v<T> and Capacity != 0
77
template <typename T, std::size_t Capacity>
78
struct inplace_vector_bytes_based_storage {
- alignas(T) unsigned char elems[Capacity * sizeof(T)];
79
+ alignas(T) std::byte elems[Capacity * sizeof(T)];
80
81
T *begin() { return std::launder(reinterpret_cast<const T *>(elems)); }
82
const T *begin() const {
0 commit comments