Commit e0ae1fa0 authored by unknown's avatar unknown
Browse files

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).
parent 09171d1b
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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_;