diff options
Diffstat (limited to 'src/fs.h')
-rw-r--r-- | src/fs.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -69,7 +69,11 @@ public: static inline path u8path(const std::string& utf8_str) { +#if __cplusplus < 202002L return std::filesystem::u8path(utf8_str); +#else + return std::filesystem::path(std::u8string{utf8_str.begin(), utf8_str.end()}); +#endif } // Disallow implicit std::string conversion for absolute to avoid |