diff options
author | unknown <konstantin@mysql.com> | 2005-06-06 15:52:45 +0400 |
---|---|---|
committer | unknown <konstantin@mysql.com> | 2005-06-06 15:52:45 +0400 |
commit | e0ae1fa061dce2f22670148bda83eb9e91d05501 (patch) | |
tree | 1abd873bff1a294f9cc9a5efc02d7795fb38dc8b /extra/yassl | |
parent | 09171d1b53844eb60e24fda8a6ba98a3cfbbe6e1 (diff) | |
download | mariadb-git-e0ae1fa061dce2f22670148bda83eb9e91d05501.tar.gz |
Portability fix, mySTL on Sun Forte 5.4.
extra/yassl/mySTL/memory.hpp:
Portability fix, mySTL on Sun Forte 5.4: default template arguments that
are based on previous template argument don't work, just remove
the fancy syntax (non-default second argument is not used anywhere
anyway).
Diffstat (limited to 'extra/yassl')
-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_; |