mirror of
https://github.com/boostorg/filesystem.git
synced 2026-01-28 07:12:10 +00:00
Because of the changed semantics of appending operations in v4, path composition in absolute() would produce incorrect results because at some point it would append root directory and therefore discard root name that was potentially added before. The updated implementation fixes that, and also fixes the case when the input path is already absolute and starts with a root directory, and the base path has a root name. Previously, the returned path would contain the root name from the base path, while the correct thing to do is to return the input path as is.