Re: [Stlport-devel] type traits checks
Brought to you by:
complement
From: <fra...@fr...> - 2007-09-14 19:44:10
|
You should have a try with STLport trunk. In 5.1, I had done __type_traits instantiation directly in the vector class, next to iterator typedef and stuff like that. It result in early instantiation of those types. My idear was to limit number of instantiation. I realized that I was wrong when I introduce compiler support of type traits. In trunk, __type_traits are instantiated only in vector methods that need it. This way you can access to vector<MyType>::iterator even if MyType is not complete. Bests Michael Fink wrote: > Hi, > > I'm currently trying out Ogre3D with STLport 5.1.3 and tried to compile > a sample application. There were errors that I think are in the Ogre3D > source, but I just wanted to check if I'm right. The sourcecode compiles > well using native standard C++ library. I'm using Visual C++ 2005 > Express, by the way. > > The error is in stlport\stl\type_traits.h: > > stlport\stl\type_traits.h(249) : error C2139: > 'Ogre::LinkedSkeletonAnimationSource' : an undefined class is not > allowed as an argument to compiler intrinsic type trait > '__has_trivial_constructor' > [...]\include\ogreskeleton.h(53) : see declaration of > 'Ogre::LinkedSkeletonAnimationSource' > > The code is as follows (snipped irrelevant code): > > ----------- > namespace Ogre { > > struct LinkedSkeletonAnimationSource; > [...] > typedef std::vector<LinkedSkeletonAnimationSource> > LinkedSkeletonAnimSourceList; > [...] > mutable LinkedSkeletonAnimSourceList mLinkedSkeletonAnimSourceList; > [...] > struct LinkedSkeletonAnimationSource > { > [...] > }; > > } // namespace Ogre > ----------- > > The code basically uses std::vector of a type that is only later > defined. I think the checks are there to check for a complete class and > to check for needed traits of the vector's element type. > > If that's an error, I would file a bug against Ogre3D so that it gets fixed. > > bye > Michael > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Stlport-devel mailing list > Stl...@li... > https://lists.sourceforge.net/lists/listinfo/stlport-devel > > > |