diff --git a/src/osgPlugins/vrml/ReaderWriterVRML2.cpp b/src/osgPlugins/vrml/ReaderWriterVRML2.cpp index 8f30699c2..519e5bad5 100644 --- a/src/osgPlugins/vrml/ReaderWriterVRML2.cpp +++ b/src/osgPlugins/vrml/ReaderWriterVRML2.cpp @@ -110,16 +110,15 @@ class resource_fetcher: public openvrml::resource_fetcher using std::find; using std::string; using boost::algorithm::iequals; - using boost::next; string media_type = "application/octet-stream"; const string::const_reverse_iterator dot_pos = find(this->url_.rbegin(), this->url_.rend(), '.'); - if (dot_pos == this->url_.rend() || next(dot_pos.base()) == this->url_.end()) + if (dot_pos == this->url_.rend() || boost::next(dot_pos.base()) == this->url_.end()) { return media_type; } - const string::const_iterator hash_pos = find(next(dot_pos.base()), this->url_.end(), '#'); + const string::const_iterator hash_pos = find(boost::next(dot_pos.base()), this->url_.end(), '#'); const string ext(dot_pos.base(), hash_pos); if (iequals(ext, "wrl") || iequals(ext, "vrml"))