Commit 63ecaef5 by Alexandre Oliva Committed by Alexandre Oliva

pthread_alloc: Solaris' ctype.h defines _U to 01; use _Up as template parameter instead.

* pthread_alloc: Solaris' ctype.h defines _U to 01; use _Up as
template parameter instead.

From-SVN: r28605
parent aee941f2
1999-08-08 Alexandre Oliva <oliva@dcc.unicamp.br>
* pthread_alloc: Solaris' ctype.h defines _U to 01; use _Up as
template parameter instead.
1999-06-18 Martin von Lwis <loewis@informatik.hu-berlin.de> 1999-06-18 Martin von Lwis <loewis@informatik.hu-berlin.de>
* stl_queue.h: Rename _M_c to c, and _M_comp to comp. * stl_queue.h: Rename _M_c to c, and _M_comp to comp.
......
...@@ -376,13 +376,13 @@ public: ...@@ -376,13 +376,13 @@ public:
typedef const _Tp& const_reference; typedef const _Tp& const_reference;
typedef _Tp value_type; typedef _Tp value_type;
template <class _U> struct rebind { template <class _Up> struct rebind {
typedef pthread_allocator<_U> other; typedef pthread_allocator<_Up> other;
}; };
pthread_allocator() __STL_NOTHROW {} pthread_allocator() __STL_NOTHROW {}
pthread_allocator(const pthread_allocator& a) __STL_NOTHROW {} pthread_allocator(const pthread_allocator& a) __STL_NOTHROW {}
template <class _U> pthread_allocator(const pthread_allocator<_U>&) template <class _Up> pthread_allocator(const pthread_allocator<_Up>&)
__STL_NOTHROW {} __STL_NOTHROW {}
~pthread_allocator() __STL_NOTHROW {} ~pthread_allocator() __STL_NOTHROW {}
...@@ -416,8 +416,8 @@ public: ...@@ -416,8 +416,8 @@ public:
typedef const void* const_pointer; typedef const void* const_pointer;
typedef void value_type; typedef void value_type;
template <class _U> struct rebind { template <class _Up> struct rebind {
typedef pthread_allocator<_U> other; typedef pthread_allocator<_Up> other;
}; };
}; };
...@@ -451,16 +451,16 @@ struct _Alloc_traits<_Tp, _Pthread_alloc_template<_Max_size> > ...@@ -451,16 +451,16 @@ struct _Alloc_traits<_Tp, _Pthread_alloc_template<_Max_size> >
allocator_type; allocator_type;
}; };
template <class _Tp, class _U, size_t _Max> template <class _Tp, class _Up, size_t _Max>
struct _Alloc_traits<_Tp, __allocator<_U, _Pthread_alloc_template<_Max> > > struct _Alloc_traits<_Tp, __allocator<_Up, _Pthread_alloc_template<_Max> > >
{ {
static const bool _S_instanceless = true; static const bool _S_instanceless = true;
typedef simple_alloc<_Tp, _Pthread_alloc_template<_Max> > _Alloc_type; typedef simple_alloc<_Tp, _Pthread_alloc_template<_Max> > _Alloc_type;
typedef __allocator<_Tp, _Pthread_alloc_template<_Max> > allocator_type; typedef __allocator<_Tp, _Pthread_alloc_template<_Max> > allocator_type;
}; };
template <class _Tp, class _U> template <class _Tp, class _Up>
struct _Alloc_traits<_Tp, pthread_allocator<_U> > struct _Alloc_traits<_Tp, pthread_allocator<_Up> >
{ {
static const bool _S_instanceless = true; static const bool _S_instanceless = true;
typedef simple_alloc<_Tp, _Pthread_alloc_template<> > _Alloc_type; typedef simple_alloc<_Tp, _Pthread_alloc_template<> > _Alloc_type;
......
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