Boost C++ Libraries: Ticket #2386: [bcp] Support trailing slashes in the boost path https://svn.boost.org/trac10/ticket/2386 <p> In bcp, if the '--boost' option has a trailing slash it causes problems in 'bcp_implementation::add_directory' when it removes the path from paths. The fpllowing code removes one too many characters: </p> <pre class="wiki"> if(m_boost_path.string().size()) s.erase(0, m_boost_path.string().size() + 1) </pre><p> The attached patch tries to fix this. It's very hacky, but it's the only way I could work out how to do it with Boost.Filesystem. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2386 Trac 1.4.3 Daniel James Mon, 06 Oct 2008 22:26:10 GMT attachment set https://svn.boost.org/trac10/ticket/2386 https://svn.boost.org/trac10/ticket/2386 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">bcp2.patch</span> </li> </ul> Ticket John Maddock Tue, 07 Oct 2008 09:29:07 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2386#comment:1 https://svn.boost.org/trac10/ticket/2386#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">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/49162" title="Fixes #2386. Removed trailing / from boost path. Fixes #2385. ...">[49162]</a>) Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2386" title="#2386: Bugs: [bcp] Support trailing slashes in the boost path (closed: fixed)">#2386</a>. Removed trailing / from boost path. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2385" title="#2385: Bugs: [bcp] Deal with trailing options in the command line. (closed: fixed)">#2385</a>. Handles all positional args separately from named args. </p> Ticket