I have this piece of code
auto path = std::filesystem::path("/root/home/../opt/.");
I had tried std::filesystem::absolute()
but then realized it is for something else than the reasult I want
My question is how can i convert that relative path to the absolute path so that the reasult will be "/root/opt/"
.
I am using c++17 on Debian g++-9