9 #include "fwTools/pathDifference.hpp" 14 boost::filesystem::path
getPathDifference( boost::filesystem::path path1, boost::filesystem::path path2 )
16 using boost::filesystem::path;
20 std::pair<path::iterator, path::iterator> fstChange;
21 fstChange = std::mismatch(path1.begin(), path1.end(), path2.begin());
23 path::iterator i1 = fstChange.first;
24 path::iterator i2 = fstChange.second;
27 while (i1 != path1.end() )
34 while (i2 != path2.end() )