Isn't it what you want? http://www.boost.org/libs/filesystem/v3/doc/reference.html#equivalent