How to convert a boost::filesystem::path in a form of:
root/subdir1/subdir2/../some.file
to:
root/subdir1/some.file
with possibly multiple "go level up" operators?
Check out canonical from the Boost filesystem library.