Commit e14f2180 authored by BRAMAS Berenger's avatar BRAMAS Berenger
Browse files

oops missmatch in the deleter for the smart ptr

parent 8607a233
...@@ -24,12 +24,12 @@ enum FSmartPointerType{ ...@@ -24,12 +24,12 @@ enum FSmartPointerType{
template <FSmartPointerType MemoryType, class ClassType> template <FSmartPointerType MemoryType, class ClassType>
inline typename std::enable_if<(MemoryType == FSmartArrayMemory), void>::type FSmartDeletePointer(ClassType* ptr){ inline typename std::enable_if<(MemoryType == FSmartArrayMemory), void>::type FSmartDeletePointer(ClassType* ptr){
delete ptr; delete[] ptr;
} }
template <FSmartPointerType MemoryType, class ClassType> template <FSmartPointerType MemoryType, class ClassType>
inline typename std::enable_if<(MemoryType == FSmartPointerMemory), void>::type FSmartDeletePointer(ClassType* ptr){ inline typename std::enable_if<(MemoryType == FSmartPointerMemory), void>::type FSmartDeletePointer(ClassType* ptr){
delete[] ptr; delete ptr;
} }
/** This class is a basic smart pointer class /** This class is a basic smart pointer class
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment