cxgeorge il y a 23 ans
Parent
commit
10d2821730

+ 3 - 3
dtool/src/dtoolbase/dallocator.T

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

+ 0 - 2
dtool/src/dtoolbase/pallocator.T

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

+ 3 - 2
dtool/src/dtoolbase/pallocator.h

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