std::filesystem
on C++17, and std::experimental::filesystem
for many pre-C++17 compilers, are based on boost::filesystem
and almost all of it is obvious to port to the newer std.
But I see no std::filesystem
equivalent to boost::filesystem::unique_path()
.
Is there an equivalent in std that I'm not noticing? Or is there a recommended approach I should take to mimic the implementation?
I'm really hoping to replace the boost::filesystem
dependency when my code notices it's compiling on a platform that supports std::filesystem
, and unique_path()
is the only not obvious part of my conversion.