mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
oops, revert temporarily: crashes interrogate
This commit is contained in:
parent
04a020b0a3
commit
05e24493fc
@ -26,21 +26,9 @@
|
|||||||
#include "register_type.h"
|
#include "register_type.h"
|
||||||
|
|
||||||
#ifndef USE_STL_ALLOCATOR
|
#ifndef USE_STL_ALLOCATOR
|
||||||
// If we're not using custom allocators, we still need to use make a
|
// If we're not using custom allocators, just use the standard class
|
||||||
// custom class definition, so we can discard the type_handle
|
// definition.
|
||||||
// parameter.
|
#define pvector vector
|
||||||
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> ©) : 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) { }
|
|
||||||
};
|
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user