Hi Amos & Tim, I've just checked in the change to use const operators in functors in SharedStateManager, prompted by email on the same topic from Paul Martz, this change looks the same as Tim's and is now checked in.
Robert. On Dec 12, 2007 5:15 AM, Amos Smith <[EMAIL PROTECTED]> wrote: > With code downloaded via svn this evening (revision 7671), I'm seeing a > compilation error for osgDB SharedStateManager.cpp in Win32 Release mode. > > Excerpt of error description: > > C3848: expression having type 'const > osgDB::SharedStateManager::CompareStateAttributes' would lose some > const-volatile qualifiers in order to call 'bool > osgDB::SharedStateManager::CompareStateAttributes::operator ()(const > osg::ref_ptr<T> &,const osg::ref_ptr<T> &)' > > > Build environment is: WinXP SP2, MS VS 8.1 SP1, using Microsoft Platform SDK > for Windows Server 2003 R2. > > > Full output for osgDB rebuild follows: > > 1>------ Rebuild All started: Project: osgDB, Configuration: Release Win32 > ------ > 1>Deleting intermediate and output files for project 'osgDB', configuration > 'Release|Win32' > 1>Building Custom Rule E:/OpenSceneGraph/src/osgDB/CMakeLists.txt > 1>-- searching TIFF -->tiff.h<--><-->E:/3rdparty<-- > 1>-- searching FREETYPE -->ft2build.h<--><-->E:/3rdparty<-- > 1>-- searching JPEG -->jpeglib.h<--><-->E:/3rdparty<-- > 1>-- searching GLUT -->GL/glut.h<--><-->E:/3rdparty<-- > 1>-- searching GIFLIB -->gif_lib.h<--><-->E:/3rdparty<-- > 1>-- searching ZLIB -->zlib.h<--><-->E:/3rdparty<-- > 1>-- searching PNG -->png.h<--><-->E:/3rdparty<-- > 1>-- ERROR: wxWidgets was not found. > 1>-- Found JPEG: E:/3rdParty/lib/libjpeg.lib > 1>-- Found PNG: E:/3rdParty/lib/libpng.lib > 1>-- Configuring done > 1>-- Generating done > 1>-- Build files have been written to: E:/OpenSceneGraph > 1>Compiling... > 1>WriteFile.cpp > 1>E:\OpenSceneGraph\include\osgDB/DatabasePager(337) : warning C4800: > 'osg::Texture::TextureObject *' : forcing value to bool 'true' or 'false' > (performance warning) > 1>Version.cpp > 1>SharedStateManager.cpp > 1>C:\Program Files\Microsoft Visual Studio 8\VC\include\xtree(1174) : error > C3848: expression having type 'const > osgDB::SharedStateManager::CompareStateAttributes' would lose some > const-volatile qualifiers in order to call 'bool > osgDB::SharedStateManager::CompareStateAttributes::operator ()(const > osg::ref_ptr<T> &,const osg::ref_ptr<T> &)' > 1> with > 1> [ > 1> T=osg::StateAttribute > 1> ] > 1> C:\Program Files\Microsoft Visual Studio 8\VC\include\xtree(1169) > : while compiling class template member function > 'std::_Tree_nod<_Traits>::_Node *std::_Tree<_Traits>::_Lbound(const > osg::ref_ptr<T> &) const' > 1> with > 1> [ > 1> > _Traits=std::_Tset_traits<osg::ref_ptr<osg::StateAttribute>,osgDB::SharedStateManager::CompareStateAttributes,std::allocator<osg::ref_ptr<osg::StateAttribute>>,false>, > 1> T=osg::StateAttribute > 1> ] > 1> C:\Program Files\Microsoft Visual Studio 8\VC\include\set(69) : > see reference to class template instantiation 'std::_Tree<_Traits>' being > compiled > 1> with > 1> [ > 1> > _Traits=std::_Tset_traits<osg::ref_ptr<osg::StateAttribute>,osgDB::SharedStateManager::CompareStateAttributes,std::allocator<osg::ref_ptr<osg::StateAttribute>>,false> > 1> ] > 1> E:\OpenSceneGraph\include\osgDB/SharedStateManager(88) : see > reference to class template instantiation 'std::set<_Kty,_Pr>' being > compiled > 1> with > 1> [ > 1> _Kty=osg::ref_ptr<osg::StateAttribute>, > 1> _Pr=osgDB::SharedStateManager::CompareStateAttributes > 1> ] > 1>Registry.cpp > 1>E:\OpenSceneGraph\include\osgDB/DatabasePager(337) : warning C4800: > 'osg::Texture::TextureObject *' : forcing value to bool 'true' or 'false' > (performance warning) > 1>ReaderWriter.cpp > 1>E:\OpenSceneGraph\include\osgDB/DatabasePager(337) : warning C4800: > 'osg::Texture::TextureObject *' : forcing value to bool 'true' or 'false' > (performance warning) > 1>ReadFile.cpp > 1>E:\OpenSceneGraph\include\osgDB/DatabasePager(337) : warning C4800: > 'osg::Texture::TextureObject *' : forcing value to bool 'true' or 'false' > (performance warning) > 1>Output.cpp > 1>E:\OpenSceneGraph\include\osgDB/DatabasePager(337) : warning C4800: > 'osg::Texture::TextureObject *' : forcing value to bool 'true' or 'false' > (performance warning) > 1>Input.cpp > 1>E:\OpenSceneGraph\include\osgDB/DatabasePager(337) : warning C4800: > 'osg::Texture::TextureObject *' : forcing value to bool 'true' or 'false' > (performance warning) > 1>ImageOptions.cpp > 1>FileUtils.cpp > 1>E:\OpenSceneGraph\include\osgDB/DatabasePager(337) : warning C4800: > 'osg::Texture::TextureObject *' : forcing value to bool 'true' or 'false' > (performance warning) > 1>FileNameUtils.cpp > 1>E:\OpenSceneGraph\include\osgDB/DatabasePager(337) : warning C4800: > 'osg::Texture::TextureObject *' : forcing value to bool 'true' or 'false' > (performance warning) > 1>FieldReaderIterator.cpp > 1>FieldReader.cpp > 1>Field.cpp > 1>DynamicLibrary.cpp > 1>E:\OpenSceneGraph\include\osgDB/DatabasePager(337) : warning C4800: > 'osg::Texture::TextureObject *' : forcing value to bool 'true' or 'false' > (performance warning) > 1>DotOsgWrapper.cpp > 1>DatabasePager.cpp > 1>E:\OpenSceneGraph\include\osgDB/DatabasePager(337) : warning C4800: > 'osg::Texture::TextureObject *' : forcing value to bool 'true' or 'false' > (performance warning) > 1>Archive.cpp > 1>E:\OpenSceneGraph\include\osgDB/DatabasePager(337) : warning C4800: > 'osg::Texture::TextureObject *' : forcing value to bool 'true' or 'false' > (performance warning) > 1>Generating Code... > 1>Build log was saved at > "file://e:\OpenSceneGraph\src\osgDB\osgDB.dir\Release\BuildLog.htm" > 1>osgDB - 1 error(s), 11 warning(s) > ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ========== > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

