From 1d17b3df82f947d68b7a43add33da4b43aad9da1 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Thu, 17 Feb 2022 01:52:12 -0600 Subject: [PATCH] [ox/std] Remove use of emplace_back from ox::Array constructor --- deps/ox/src/ox/std/array.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/deps/ox/src/ox/std/array.hpp b/deps/ox/src/ox/std/array.hpp index bf231977..c76bd7e2 100644 --- a/deps/ox/src/ox/std/array.hpp +++ b/deps/ox/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; } }