diff --git a/Runtime/rstl.hpp b/Runtime/rstl.hpp index d6321e488..c7f6135f1 100644 --- a/Runtime/rstl.hpp +++ b/Runtime/rstl.hpp @@ -267,15 +267,13 @@ private: } template static void - destroy(Tp& t, std::enable_if_t || std::is_trivially_destructible_v>* = nullptr) { - } + destroy(Tp& t, std::enable_if_t || std::is_trivially_destructible_v>* = nullptr) {} public: reserved_vector() noexcept(std::is_nothrow_constructible_v) : x0_size(0) {} template - reserved_vector(const T (&l)[LN]) noexcept(std::is_nothrow_copy_constructible_v) - : x0_size(LN) { + reserved_vector(const T (&l)[LN]) noexcept(std::is_nothrow_copy_constructible_v) : x0_size(LN) { static_assert(LN <= N, "initializer array too large for reserved_vector"); for (size_t i = 0; i < LN; ++i) { ::new (static_cast(std::addressof(_value(i)))) T(l[i]);