Skip to content

Commit 8dbc733

Browse files
committed
default initialize array
1 parent 6b75318 commit 8dbc733

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/beman/inplace_vector/inplace_vector.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ template <typename T, std::size_t Capacity>
6363
struct inplace_vector_type_based_storage {
6464
using array_type = If<!std::is_const_v<T>, std::array<T, Capacity>,
6565
const std::array<std::remove_const_t<T>, Capacity>>;
66-
array_type elems{};
66+
array_type elems;
6767

6868
constexpr T *begin() { return elems.data(); }
6969
constexpr const T *begin() const { return elems.data(); }

0 commit comments

Comments
 (0)