fix not calling the destructor
parent
62a973246d
commit
263bbc88cf
|
@ -1,7 +1,7 @@
|
|||
cmake_minimum_required(VERSION 3.5)
|
||||
include(cmake/color.cmake)
|
||||
|
||||
set(BLT_VERSION 0.14.10)
|
||||
set(BLT_VERSION 0.14.11)
|
||||
set(BLT_TEST_VERSION 0.0.1)
|
||||
|
||||
set(BLT_TARGET BLT)
|
||||
|
|
|
@ -878,7 +878,7 @@ namespace blt
|
|||
template<class U>
|
||||
inline void destroy(U* p)
|
||||
{
|
||||
if constexpr (std::is_trivially_destructible_v<U>)
|
||||
if constexpr (!std::is_trivially_destructible_v<U>)
|
||||
{
|
||||
if (p != nullptr)
|
||||
p->~U();
|
||||
|
|
Loading…
Reference in New Issue