Commit 95da9270 authored by konstantin@mysql.com's avatar konstantin@mysql.com

Portability fix, mySTL on Sun Forte 5.4.

parent b6e895ad
......@@ -37,16 +37,18 @@
namespace mySTL {
template<typename T, typename Deletor = void (*) (T*)>
template<typename T>
struct auto_ptr_ref {
typedef void (*Deletor)(T*);
T* ptr_;
Deletor del_;
auto_ptr_ref(T* p, Deletor d) : ptr_(p), del_(d) {}
};
template<typename T, typename Deletor = void (*) (T*)>
template<typename T>
class auto_ptr {
typedef void (*Deletor)(T*);
T* ptr_;
Deletor del_;
......
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