[Boost-bugs] [Boost C++ Libraries] #12116: filesystem::path::iterator does not work correctly with "\\?\UNC\{servername}" paths

Subject: [Boost-bugs] [Boost C++ Libraries] #12116: filesystem::path::iterator does not work correctly with "\\?\UNC\{servername}" paths
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-04-06 20:34:24


#12116: filesystem::path::iterator does not work correctly with
"\\?\UNC\{servername}" paths
------------------------------+------------------------
 Reporter: jim@… | Owner: bemandawes
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: filesystem
  Version: Boost 1.61.0 | Severity: Problem
 Keywords: |
------------------------------+------------------------
 {{{
 #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
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12116>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:20 UTC