clang 6.0 compile fixes.
This commit is contained in:
parent
69929f596f
commit
7876c7915b
@ -72,7 +72,7 @@ class OSGDB_EXPORT ObjectCache : public osg::Referenced
|
||||
|
||||
class ClassComp {
|
||||
public:
|
||||
bool operator() (const ObjectCache::FileNameOptionsPair& lhs, const ObjectCache::FileNameOptionsPair& rhs);
|
||||
bool operator() (const ObjectCache::FileNameOptionsPair& lhs, const ObjectCache::FileNameOptionsPair& rhs) const;
|
||||
};
|
||||
|
||||
typedef std::pair<osg::ref_ptr<osg::Object>, double > ObjectTimeStampPair;
|
||||
|
@ -16,7 +16,7 @@
|
||||
|
||||
using namespace osgDB;
|
||||
|
||||
bool ObjectCache::ClassComp::operator() (const ObjectCache::FileNameOptionsPair& lhs, const ObjectCache::FileNameOptionsPair& rhs)
|
||||
bool ObjectCache::ClassComp::operator() (const ObjectCache::FileNameOptionsPair& lhs, const ObjectCache::FileNameOptionsPair& rhs) const
|
||||
{
|
||||
return lhs.first < rhs.first || *lhs.second < *rhs.second;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user