This commit is contained in:
zel1b08a 2025-02-22 06:10:54 +01:00 committed by GitHub
commit 0a7a664403
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -443,7 +443,11 @@ inline void to_json(BasicJsonType& j, const T& t)
template<typename BasicJsonType>
inline void to_json(BasicJsonType& j, const std_fs::path& p)
{
j = p.string();
#if defined __cpp_lib_char8_t
j = reinterpret_cast<char const*>(p.u8string().data());
#else
j = p.u8string();
#endif
}
#endif