[ox/std] Remove use of emplace_back from ox::Array constructor
This commit is contained in:
parent
22216c66d6
commit
1d17b3df82
5
deps/ox/src/ox/std/array.hpp
vendored
5
deps/ox/src/ox/std/array.hpp
vendored
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user