
9 Dec
2011
9 Dec
'11
5:54 p.m.
2011/12/8 Sebastian Karlsson
Unexpectedly this does not seem to work. Consider:
boost::filesystem::path a("foo/bar/"), b("root/test"); a.append( b.begin() + 1, boost::filesystem::const_iterator() ); \\ Expects a == "foo/bar/test"
Am I missing something?
Kind regards, Sebastian Karlsson
Default constructed boost::filesystem::path::[const_]iterator is not a valid end iterator as with boost::filesystem::directory_iterator it would seem, barring that, here's the trac ticket with an make_relative() function for which this functionality was originally needed for: https://svn.boost.org/trac/boost/ticket/6249 Kind regards, Sebastian Karlsson