vc7.1 fixes

This commit is contained in:
cxgeorge 2002-11-22 23:07:55 +00:00
parent c3ad80cf52
commit 10d2821730
3 changed files with 6 additions and 7 deletions

View File

@ -63,9 +63,9 @@ dallocator() throw() {
}
template<class Type>
INLINE dallocator<Type>::pointer dallocator<Type>::
allocate(dallocator<Type>::size_type n, allocator<void>::const_pointer) {
return (dallocator<Type>::pointer)(*global_operator_new)(n * sizeof(Type));
INLINE typename dallocator<Type>::pointer dallocator<Type>::
allocate(typename dallocator<Type>::size_type n, allocator<void>::const_pointer) {
return (typename dallocator<Type>::pointer)(*global_operator_new)(n * sizeof(Type));
}
template<class Type>

View File

@ -72,8 +72,6 @@ deallocate(void *p, allocator<Type>::size_type) {
#elif MODERN_STYLE_ALLOCATOR
template<class Type>
INLINE pallocator<Type>::
pallocator() throw() {

View File

@ -96,8 +96,9 @@ public:
INLINE pointer allocate(size_type n, allocator<void>::const_pointer hint = 0);
INLINE void deallocate(void *p, size_type n);
template<class U>
struct rebind { typedef pallocator<U> other; };
template<class U> struct rebind {
typedef pallocator<U> other;
};
};
#else