Browse Source

oops, revert temporarily: crashes interrogate

David Rose 18 years ago
parent
commit
05e24493fc
1 changed files with 3 additions and 15 deletions
  1. 3 15
      dtool/src/dtoolbase/pvector.h

+ 3 - 15
dtool/src/dtoolbase/pvector.h

@@ -26,21 +26,9 @@
 #include "register_type.h"
 
 #ifndef USE_STL_ALLOCATOR
-// If we're not using custom allocators, we still need to use make a
-// custom class definition, so we can discard the type_handle
-// parameter.
-template<class Type>
-class pvector : public vector<Type> {
-public:
-  typedef vector<Type> base_class;
-  typedef TYPENAME base_class::size_type size_type;
-
-  pvector(TypeHandle type_handle = pvector_type_handle) : base_class() { }
-  pvector(const pvector<Type> &copy) : base_class(copy) { }
-  pvector(size_type n, TypeHandle type_handle = pvector_type_handle) : base_class(n, Type()) { }
-  pvector(size_type n, const Type &value, TypeHandle type_handle = pvector_type_handle) : base_class(n, value) { }
-  pvector(const Type *begin, const Type *end, TypeHandle type_handle = pvector_type_handle) : base_class(begin, end) { }
-};
+// If we're not using custom allocators, just use the standard class
+// definition.
+#define pvector vector
 
 #else