diff --git a/components/vfs/registerarchives.cpp b/components/vfs/registerarchives.cpp index 5d8d30f0f6..9e1b13fede 100644 --- a/components/vfs/registerarchives.cpp +++ b/components/vfs/registerarchives.cpp @@ -44,7 +44,8 @@ namespace VFS std::set seen; for (Files::PathContainer::const_iterator iter = dataDirs.begin(); iter != dataDirs.end(); ++iter) { - if (seen.insert((*iter).c_str()).second) + // TODO(jvoisin) Get rid of `->native()` when we move PathContainer from boost::filesystem to std::filesystem. + if (seen.insert(iter->native()).second) { Log(Debug::Info) << "Adding data directory " << iter->string(); // Last data dir has the highest priority