mirror of
https://github.com/boostorg/wave.git
synced 2026-02-02 09:22:19 +00:00
Minor optimisation.
[SVN r27686]
This commit is contained in:
@@ -146,9 +146,9 @@ bool include_pathes::find_include_file (std::string &s,
|
||||
// with the directory in the search path after the one where the current
|
||||
// file was found.
|
||||
|
||||
fs::path file_path (current_file, fs::native);
|
||||
for (/**/; it != include_pathes_end; ++it) {
|
||||
fs::path currpath ((*it).string(), fs::native);
|
||||
fs::path file_path (current_file, fs::native);
|
||||
if (std::equal(currpath.begin(), currpath.end(), file_path.begin()))
|
||||
{
|
||||
++it; // start searching with the next directory
|
||||
|
||||
Reference in New Issue
Block a user