Get absolute path with boost::filesystem::path

You say you want an absolute path, but your example shows that you already have an absolute path. The process of removing the .. components of a path is known as canonicalization. For that, you should call canonical. It happens to also perform the task of absolute, so you don’t need to call absolute or make_absolute first. The make_absolute function requires a base path; you can pass it current_path() if you don’t have anything better.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)