Changed back to use an std::vector<> rather than a std::list for RequestQueue to

avoid member template problems under Solaris.
This commit is contained in:
Robert Osfield 2008-06-27 19:40:52 +00:00
parent a9b05e0815
commit fec2a8fabe
2 changed files with 2 additions and 2 deletions

View File

@ -347,7 +347,7 @@ class OSGDB_EXPORT DatabasePager : public osg::NodeVisitor::DatabaseRequestHandl
struct RequestQueue : public osg::Referenced struct RequestQueue : public osg::Referenced
{ {
typedef std::list< osg::ref_ptr<DatabaseRequest> > RequestList; typedef std::vector< osg::ref_ptr<DatabaseRequest> > RequestList;
void sort(); void sort();

View File

@ -243,7 +243,7 @@ struct DatabasePager::SortFileRequestFunctor
// //
void DatabasePager::RequestQueue::sort() void DatabasePager::RequestQueue::sort()
{ {
_requestList.sort(SortFileRequestFunctor()); std::sort(_requestList.begin(),_requestList.end(),SortFileRequestFunctor());
} }