Browse Source

porting bugs

David Rose 24 years ago
parent
commit
3d1b74c9d0
1 changed files with 6 additions and 0 deletions
  1. 6 0
      dtool/src/dtoolbase/plist.h

+ 6 - 0
dtool/src/dtoolbase/plist.h

@@ -38,6 +38,12 @@ public:
   plist(const plist<Type> &copy) : list<Type, pallocator<Type> >(copy) { }
   plist(size_type n) : list<Type, pallocator<Type> >(n) { }
   plist(size_type n, const Type &value) : list<Type, pallocator<Type> >(n, value) { }
+
+  // VC++ doesn't seem to inherit these properly.
+  typedef list<Type, pallocator<Type> >::iterator iterator;
+  typedef list<Type, pallocator<Type> >::const_iterator const_iterator;
+  typedef list<Type, pallocator<Type> >::reverse_iterator reverse_iterator;
+  typedef list<Type, pallocator<Type> >::const_reverse_iterator const_reverse_iterator;
 };
 
 #endif