diff --git a/src/ox/std/array.hpp b/src/ox/std/array.hpp index bf2319778..c76bd7e23 100644 --- a/src/ox/std/array.hpp +++ b/src/ox/std/array.hpp @@ -225,8 +225,9 @@ constexpr Array::Array(std::size_t size) noexcept { template constexpr Array::Array(std::initializer_list list) noexcept { - for (auto &item : list) { - emplace_back(item); + for (auto i = 0ul; auto &item : list) { + this->operator[](i) = item; + ++i; } }