Subject: [Boost-bugs] [Boost C++ Libraries] #2386: [bcp] Support trailing slashes in the boost path
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-10-06 22:25:21
#2386: [bcp] Support trailing slashes in the boost path
--------------------------+-------------------------------------------------
Reporter: danieljames | Owner: johnmaddock
Type: Bugs | Status: new
Milestone: Boost 1.37.0 | Component: None
Version: Boost 1.36.0 | Severity: Problem
Keywords: |
--------------------------+-------------------------------------------------
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:
{{{
if(m_boost_path.string().size())
s.erase(0, m_boost_path.string().size() + 1)
}}}
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.
-- Ticket URL: <http://svn.boost.org/trac/boost/ticket/2386> 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:49:58 UTC