Opened 14 years ago

Closed 14 years ago

#2386 closed Bugs (fixed)

[bcp] Support trailing slashes in the boost path

Reported by: Daniel James Owned by: John Maddock
Milestone: Boost 1.37.0 Component: None
Version: Boost 1.36.0 Severity: Problem
Keywords: Cc:

Description

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.

Attachments (1)

bcp2.patch (486 bytes ) - added by Daniel James 14 years ago.

Download all attachments as: .zip

Change History (2)

by Daniel James, 14 years ago

Attachment: bcp2.patch added

comment:1 by John Maddock, 14 years ago

Resolution: fixed
Status: newclosed

(In [49162]) Fixes #2386. Removed trailing / from boost path. Fixes #2385. Handles all positional args separately from named args.

Note: See TracTickets for help on using tickets.