diff --git a/src/osgDB/DatabasePager.cpp b/src/osgDB/DatabasePager.cpp index b512b917a..3dbea3c77 100644 --- a/src/osgDB/DatabasePager.cpp +++ b/src/osgDB/DatabasePager.cpp @@ -768,7 +768,7 @@ void DatabasePager::run() if (loadedObjectsNeedToBeCompiled) { OpenThreads::ScopedLock lock(_dataToCompileListMutex); - sort(_dataToCompileList.begin(), + std::sort(_dataToCompileList.begin(), _dataToCompileList.end(), SortFileRequestFunctor()); // Prune all the old entries. DatabaseRequestList::iterator tooOld