Boost C++ Libraries: Ticket #366: handle double '/' in the boost::filesystem https://svn.boost.org/trac10/ticket/366 <pre class="wiki">Hi. Sometimes I make some path by hand. For example std::string str = "./"; //... some code .... std::string str2 = str + "/path/to/file"; The result is ".//path/to/file". If I try to make path from it: boost::filesystem::path fs_path2(str2, fs::native); I got exception. Is it possible to correct function path::m_path_append to handle this situation (double/triple/... separator in the middle of string)? </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/366 Trac 1.4.3 Dave Abrahams Fri, 06 Jul 2007 01:44:37 GMT component, description changed; cc, severity set https://svn.boost.org/trac10/ticket/366#comment:1 https://svn.boost.org/trac10/ticket/366#comment:1 <ul> <li><strong>cc</strong> <span class="trac-author">bdawes@…</span> added </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">filesystem</span> </li> <li><strong>description</strong> modified (<a href="/trac10/ticket/366?action=diff&amp;version=1">diff</a>) </li> <li><strong>severity</strong> → <span class="trac-field-new">Showstopper</span> </li> </ul> <p> Can't assign this to Beman until he logs into Trac once. </p> Ticket Dave Abrahams Mon, 09 Jul 2007 01:33:47 GMT owner, status changed https://svn.boost.org/trac10/ticket/366#comment:2 https://svn.boost.org/trac10/ticket/366#comment:2 <ul> <li><strong>owner</strong> changed from <span class="trac-author">nobody</span> to <span class="trac-author">Beman Dawes</span> </li> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">new</span> </li> </ul> Ticket Beman Dawes Tue, 28 Aug 2007 00:27:18 GMT status, resolution changed https://svn.boost.org/trac10/ticket/366#comment:3 https://svn.boost.org/trac10/ticket/366#comment:3 <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-old">None</span> → <span class="trac-field-new">fixed</span> </li> </ul> <p> This is an old issue that evaporated when Boost.Filesystem eliminated the checking on construction, so I closing the ticket. </p> <p> Note, incidentally, that multiple backslashes are valid in POSIX and other operating systems. </p> <p> --Beman </p> Ticket