Boost C++ Libraries: Ticket #8053: Path composition on Windows fails using drive letters https://svn.boost.org/trac10/ticket/8053 <p> When composing paths on Windows invalid paths are created, when the first path is only a drive letter, as shown in the following example. </p> <pre class="wiki">fs::path root = "C:"; fs::path dir = root / "folder"; // dir is now "C:folder", expecting "C:/folder" </pre><p> Tested with MSVC++10 on Win7. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8053 Trac 1.4.3 Beman Dawes Wed, 27 Feb 2013 19:19:30 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/8053#comment:1 https://svn.boost.org/trac10/ticket/8053#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> <p> The current behavior is correct. In the class path append specs in the reference docs, see the second bullet item in the list of conditions which prevent appending the separator being appended: "would change an relative path to an absolute path". Since "C:" is a relative path on Windows, a separator is not appended, and this is by design. </p> <p> Thanks, </p> <p> --Beman </p> Ticket