What methods of the boost::filesystem library can help me to get a path relative to another path?
boost::filesystem
I have a path /home/user1/Downloads/Books
/home/user1/Downloads/Books
Sadly, such a function does not exist in Boost.Filesystem. It has been requested, but they don't seem to care.
You basically have to do it manually.
Boost.Filesystem 1.60 added the relative function that can be used to handle this.