Commit e0ae1fa0 authored by unknown's avatar unknown

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
......@@ -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