|
|
@@ -87,6 +87,13 @@ public:
|
|
|
template<class Type>
|
|
|
class pallocator : public allocator<Type> {
|
|
|
public:
|
|
|
+ // There seems to be a bug in VC++ 2003 that requires these typedefs
|
|
|
+ // to be made explicitly.
|
|
|
+ typedef TYPENAME allocator<Type>::pointer pointer;
|
|
|
+ typedef TYPENAME allocator<Type>::reference reference;
|
|
|
+ typedef TYPENAME allocator<Type>::const_pointer const_pointer;
|
|
|
+ typedef TYPENAME allocator<Type>::const_reference const_reference;
|
|
|
+
|
|
|
INLINE pallocator() throw();
|
|
|
|
|
|
// template member functions in VC++ can only be defined in-class.
|
|
|
@@ -97,7 +104,7 @@ public:
|
|
|
INLINE void deallocate(void *p, size_type n);
|
|
|
|
|
|
template<class U> struct rebind {
|
|
|
- typedef pallocator<U> other;
|
|
|
+ typedef pallocator<U> other;
|
|
|
};
|
|
|
};
|
|
|
|