What methods of the boost::filesystem library can help me to get a path relative to another path?
I have a path /home/user1/Downloads/Books and a path /home/user1/. Now I want to get a path Downloads/Books.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Taken from a link found by following the ticket Nicol linked to:
Stick that in a header file and it should do what you want.
Sample call: