Opened 7 years ago
#12116 new Bugs
filesystem::path::iterator does not work correctly with "\\?\UNC\{servername}" paths
| Reported by: | Owned by: | Beman Dawes | |
|---|---|---|---|
| Milestone: | To Be Determined | Component: | filesystem |
| Version: | Boost 1.61.0 | Severity: | Problem |
| Keywords: | Cc: |
Description
#include <boost/filesystem.hpp>
#include <iostream>
#include <string>
int main() {
path p("\\\\?\\UNC\\google.com\\a\\b\\c\\file.txt");
for (auto i : p) {
cout << i.string() << endl;
}
}
The above code generates:
\\? / UNC google.com a b c file.txt
However, it should generate:
\\?\UNC\google.com / a b c file.txt
Note:
See TracTickets
for help on using tickets.
