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
1 changed files with 1 additions and 1 deletions

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) {}