Skip to content

Commit 431b0f1

Browse files
committed
const variant is not needed
1 parent 3ba7896 commit 431b0f1

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

include/beman/inplace_vector/inplace_vector.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ struct inplace_vector_type_based_storage {
6969
inplace_vector_array_type<T, Capacity> elems{};
7070

7171
constexpr T *begin() { return elems.data(); }
72-
constexpr const T *begin() const { return elems.data(); }
7372
};
7473

7574
// byte array based storage is used for non-constexpr environment, where default
@@ -81,9 +80,6 @@ struct inplace_vector_bytes_based_storage {
8180
alignas(T) inplace_vector_array_type<std::byte, Capacity * sizeof(T)> elems;
8281

8382
T *begin() { return std::launder(reinterpret_cast<const T *>(elems)); }
84-
const T *begin() const {
85-
return std::launder(reinterpret_cast<const T *>(elems));
86-
}
8783
};
8884

8985
// Base class for inplace_vector

0 commit comments

Comments
 (0)