HI Serge, The set is used to make sure that no duplicate entries exist in the context list, replacing with a std::vector<> would not achieve this.
Robert. On Wed, Aug 20, 2008 at 5:28 PM, Serge Lages <[EMAIL PROTECTED]> wrote: > Hi Robert, > > Here is a little change to the getContexts method from CompositeViewer.cpp. > I removed the std::set by directly filling the std::vector. > I've made this change because I had some strange behavior with std::set, > having my contexts in a different order between two calls to this method > (mostly seen problems between VS release and debug mode). > I hope this change is acceptable, or have I missed something with the > std::set ? > > Cheers, > > -- > Serge Lages > http://www.tharsis-software.com > > _______________________________________________ > osg-submissions mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org > > _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
