diff --git a/include/osgDB/SharedStateManager b/include/osgDB/SharedStateManager index 9e5e8ef4b..10a3c1f58 100644 --- a/include/osgDB/SharedStateManager +++ b/include/osgDB/SharedStateManager @@ -68,19 +68,19 @@ namespace osgDB { struct CompareStateAttributes { bool operator()(const osg::ref_ptr& lhs, - const osg::ref_ptr& rhs) - { - return *lhs < *rhs; - } + const osg::ref_ptr& rhs) const + { + return *lhs < *rhs; + } }; struct CompareStateSets { bool operator()(const osg::ref_ptr& lhs, - const osg::ref_ptr& rhs) - { - return lhs->compare(*rhs, true) < 0; - } + const osg::ref_ptr& rhs) const + { + return lhs->compare(*rhs, true) < 0; + } }; // Lists of shared objects