The filesystem library lives in std::filesystem
. This makes usage verbose and ergonomically challenging.
It is common practice for people to introduce the namespace alias namespace fs = std::filesystem;
when using the filesystem library to make usage more concise.
cppreference.com’s examples for the filesystem library use either using namespace std::filesystem;
or namespace fs = std::filesystem;
.
Boost Filesystem’s tutorial and examples use namespace fs = boost::filesystem;
.
Let’s standardize this.
Wording: Add the following to the header synopsis for <filesystem>
in [fs.filesystem.syn]:
namespace std { namespace fs = filesystem; }