From Marco Jez, hack/fix for VS compile/link problems related to STL containers.

This commit is contained in:
Robert Osfield
2005-12-02 00:25:40 +00:00
parent 784574670e
commit 8d8229cc05
6 changed files with 127 additions and 47 deletions

View File

@@ -19,7 +19,7 @@
#undef OUT
#endif
TYPE_NAME_ALIAS(std::vector< unsigned int >, osgText::String::vector_type);
TYPE_NAME_ALIAS(osgText::VectorUInt, osgText::String::vector_type);
BEGIN_ENUM_REFLECTOR(osgText::String::Encoding)
I_EnumLabel(osgText::String::ENCODING_UNDEFINED);
@@ -36,6 +36,7 @@ END_REFLECTOR
BEGIN_OBJECT_REFLECTOR(osgText::String)
I_BaseType(osg::Referenced);
I_BaseType(osgText::VectorUInt);
I_Constructor0();
I_Constructor1(IN, const osgText::String &, str);
I_Constructor1(IN, const std::string &, str);
@@ -48,3 +49,11 @@ BEGIN_OBJECT_REFLECTOR(osgText::String)
I_WriteOnlyProperty(const wchar_t *, );
END_REFLECTOR
BEGIN_OBJECT_REFLECTOR(osgText::VectorUInt)
I_BaseType(std::vector<unsigned int>);
I_Constructor0();
I_Constructor1(IN, const osgText::VectorUInt &, copy);
I_Constructor2(IN, unsigned int *, beg, IN, unsigned int *, end);
I_Constructor1(IN, osgText::VectorUInt::size_type, n);
END_REFLECTOR