Browse Source

export pvector properly

David Rose 24 years ago
parent
commit
aee0c8da82
1 changed files with 4 additions and 1 deletions
  1. 4 1
      dtool/src/dtoolutil/vector_src.h

+ 4 - 1
dtool/src/dtoolutil/vector_src.h

@@ -60,7 +60,10 @@ EXPORT_TEMPLATE_CLASS(EXPCL, EXPTP, VV_BASE)
 
 
 // Now we can export the vector class.
 // Now we can export the vector class.
 #pragma warning (disable : 4231)
 #pragma warning (disable : 4231)
-EXPORT_TEMPLATE_CLASS(EXPCL, EXPTP, std::vector<TYPE>)
+#define STD_VECTOR std::vector<TYPE, pallocator<TYPE> >
+EXPORT_TEMPLATE_CLASS(EXPCL, EXPTP, STD_VECTOR)
+#undef STD_VECTOR
+EXPORT_TEMPLATE_CLASS(EXPCL, EXPTP, pvector<TYPE>)
 
 
 #endif
 #endif