[Boost-bugs] [Boost C++ Libraries] #1976: Inverse function for complete

Subject: [Boost-bugs] [Boost C++ Libraries] #1976: Inverse function for complete
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-05-30 17:56:42


#1976: Inverse function for complete
-------------------------------------+--------------------------------------
 Reporter: me22.ca+boost_at_[hidden] | Owner: bemandawes
     Type: Feature Requests | Status: new
Milestone: Boost 1.36.0 | Component: filesystem
  Version: Boost 1.35.0 | Severity: Problem
 Keywords: |
-------------------------------------+--------------------------------------
 As mentioned in the '[boost] [filesystem] "leaf"' thread, complete is the
 only path composition function without a corresponding decomposition
 function.

 The idea: uncomplete(/foo/new, /foo/bar) => ../new

 The use case for this is any time you get a full path (from an open
 dialog, perhaps) and want to store a relative path so that the group of
 files can be moved to a different directory without breaking the paths.
 An IDE would be a simple example, so that the project file could be safely
 checked out of subversion.

 I'd like to call it relative, but that conceptually conflicts with the
 relative_path member decomposition function. Perhaps the member function
 could be changed to local_path(), or something.

 A discussion will need to be held to determine expected behaviour in the
 presence of symlinks, since root/foo/bar/.. is not always root/foo.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1976>
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:57 UTC