2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-07-13 19:25:51 +00:00

Make reserved_vector destructor call non-virtual

This commit is contained in:
Jack Andersen 2017-09-17 19:13:38 -10:00
parent ec8fdeef14
commit 801938c844

View File

@ -32,7 +32,7 @@ protected:
const T& _value(std::ptrdiff_t idx) const { return reinterpret_cast<const T&>(x4_data[idx]); }
template <typename Tp>
static void destroy(Tp& t, std::enable_if_t<std::is_destructible<Tp>::value &&
!std::is_trivially_destructible<Tp>::value>* = 0) { t.~Tp(); }
!std::is_trivially_destructible<Tp>::value>* = 0) { t.Tp::~Tp(); }
template <typename Tp>
static void destroy(Tp& t, std::enable_if_t<!std::is_destructible<Tp>::value ||
std::is_trivially_destructible<Tp>::value>* = 0) {}