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

Heute habe ich v1.4.0
von
ghc::filesystem
veröffentlicht, meiner
Implementation der C++17-Komponente std::filesystem
für C++11, C++14, C++17 und C++20.
Dieses Release bringt C++20-Erweiterungen, bei Kompilierung mit C++20:
Unterstützung für char8_t/std::u8string und den Spaceship-Operator
<=> für fs::path. Außerdem ist LWG_2936_BEHAVIOUR nun
standardmäßig aktiv.
Die Änderungen 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.
Ich danke allen Beteiligten für ihre Unterstützung!