Here are some compilation fixes I ran into. andy
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Osfield Sent: Wednesday, December 12, 2007 5:00 AM To: OpenSceneGraph Users Subject: Re: [osg-users] Solaris compilation issues in SVN Hi Andy, Yesterday I merged a submission to DatabasePager.cpp that included use of various stl alogorithms - such as sort and find and others, the submission added a using namespace std, but I don't like importing whole namespaces so I removed the code and then added std:: where appropriate, clearly I missed a few. I've just done a search for find and sort and added std:: in the appropriate places. I may have missed a few though, could you do a svn update and let me know how you get on. Robert. On Dec 11, 2007 7:34 PM, Andy Skinner <[EMAIL PROTECTED]> wrote: > I'm looking for the same kinds of things we've been struggling with in > the past--standard template library functions that aren't in the solaris > compiler's headers. > > We've fixed them in the past by adding includes to stdlib.h or similar. > I am looking at a couple in DatabasePager.cpp. I could try to fix them > in a similar way, but I notice that there are occurrences of these > functions with std:: in front of them. For example, one call to find() > is std::find(...), and another is just find(...). The first compiles > for me, the second doesn't. > > At my company, we would address this with the std:: prefix. But I > thought we didn't want to do that in the OSG. > > Should I address these with std::, as other calls in this file do? Or > remove the std:: from the other calls and find the right include to fix > it? > > andy > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or g > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or g
fixes.tar.gz
Description: fixes.tar.gz
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

