Boost C++ Libraries: Ticket #12116: filesystem::path::iterator does not work correctly with "\\?\UNC\{servername}" paths https://svn.boost.org/trac10/ticket/12116 <pre class="wiki">#include &lt;boost/filesystem.hpp&gt; #include &lt;iostream&gt; #include &lt;string&gt; int main() { path p("\\\\?\\UNC\\google.com\\a\\b\\c\\file.txt"); for (auto i : p) { cout &lt;&lt; i.string() &lt;&lt; endl; } } </pre><p> The above code generates: </p> <pre class="wiki">\\? / UNC google.com a b c file.txt </pre><p> However, it should generate: </p> <pre class="wiki">\\?\UNC\google.com / a b c file.txt </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12116 Trac 1.4.3