destory now checks for null
parent
0fbe3bf228
commit
b828f3b200
|
@ -231,6 +231,7 @@ namespace blt
|
|||
template<class U>
|
||||
inline void destroy(U* p)
|
||||
{
|
||||
if (p)
|
||||
p->~U();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue