mirror of
https://github.com/nlohmann/json.git
synced 2024-11-24 06:29:03 +08:00
Use OS independent utf8 string representation of std_fs::path at to_json conversions.
This commit is contained in:
parent
64f68dc563
commit
4c5083dd3f
@ -435,7 +435,7 @@ inline void to_json(BasicJsonType& j, const T& t)
|
|||||||
template<typename BasicJsonType>
|
template<typename BasicJsonType>
|
||||||
inline void to_json(BasicJsonType& j, const std_fs::path& p)
|
inline void to_json(BasicJsonType& j, const std_fs::path& p)
|
||||||
{
|
{
|
||||||
j = p.string();
|
j = p.u8string();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user