[ox/std] Remove use of emplace_back from ox::Array constructor

This commit is contained in:
Gary Talent 2022-02-17 01:52:12 -06:00
parent 22216c66d6
commit 1d17b3df82

View File

@ -225,8 +225,9 @@ constexpr Array<T, ArraySize>::Array(std::size_t size) noexcept {
template<typename T, std::size_t ArraySize>
constexpr Array<T, ArraySize>::Array(std::initializer_list<T> list) noexcept {
for (auto &item : list) {
emplace_back(item);
for (auto i = 0ul; auto &item : list) {
this->operator[](i) = item;
++i;
}
}