diff options
author | konstantin@mysql.com <> | 2005-06-06 15:52:45 +0400 |
---|---|---|
committer | konstantin@mysql.com <> | 2005-06-06 15:52:45 +0400 |
commit | 95da927081a393c124f7e585c26ac227198b33dd (patch) | |
tree | 1abd873bff1a294f9cc9a5efc02d7795fb38dc8b /extra | |
parent | b6e895ad9f5c595652426b2483a93650a0a15a58 (diff) | |
download | mariadb-git-95da927081a393c124f7e585c26ac227198b33dd.tar.gz |
Portability fix, mySTL on Sun Forte 5.4.
Diffstat (limited to 'extra')
-rw-r--r-- | extra/yassl/mySTL/memory.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/extra/yassl/mySTL/memory.hpp b/extra/yassl/mySTL/memory.hpp index 729abae7ebc..cc70fbf60d8 100644 --- a/extra/yassl/mySTL/memory.hpp +++ b/extra/yassl/mySTL/memory.hpp @@ -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_; |