ghc::filesystem Release v1.4.0
2020-12-31 10:42

Today I released v1.4.0
of
ghc::filesystem
, my implementation of C++17
std::filesystem
for C++11, C++14, C++17 and C++20.
This release brings C++20 enhancements, when compiled with C++20:
char8_t/std::u8string support and the spaceship operator <=> for
fs::path. Additionally LWG_2936_BEHAVIOUR is now on by default.
The full list of changes in v1.4.0:
- Enhancements for #71
, when compiled with C++20:
char8_tandstd::u8stringare supported whereSourceis the parameter typefs::path::u8string()andfs::path::generic_u8string()now return astd::u8string- The spaceship operator
<=>is now supported forfs::path - With the define
GHC_FILESYSTEM_ENFORCE_CPP17_APIghc::filesystemwill fall back to the oldfs::path::u8string()andfs::path::generic_u8string()API if preferred
- Bugfix for
fs::proximate(p, ec)where the internal call tofs::current_path()was not using theerror_codevariant, throwing possible exceptions instead of settingec. - Enhancement
LWG_2936_BEHAVIOURis now on by default. - Some cleanup work to reduce preprocessor directives for better readability and remove unneeded template specializations.
I want to thank all contributors for their support!