[ox/std] Remove preprocessor condition for Vector(initializer_list) constructor implementation
This commit is contained in:
parent
68f829ff2d
commit
d8a0a5f50d
2
deps/ox/src/ox/std/vector.hpp
vendored
2
deps/ox/src/ox/std/vector.hpp
vendored
@ -336,14 +336,12 @@ Vector<T, SmallVectorSize>::Vector(std::size_t size) noexcept {
|
||||
}
|
||||
}
|
||||
|
||||
#if __has_include(<initializer_list>)
|
||||
template<typename T, std::size_t SmallVectorSize>
|
||||
Vector<T, SmallVectorSize>::Vector(std::initializer_list<T> list) noexcept {
|
||||
for (auto &item : list) {
|
||||
emplace_back(item);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
template<typename T, std::size_t SmallVectorSize>
|
||||
Vector<T, SmallVectorSize>::Vector(const Vector &other) {
|
||||
|
Loading…
Reference in New Issue
Block a user