added explicit instantiations of 'has_from_json' and 'has_to_json' for std_fs::path (#5209)

* added explicit instantiations of 'has_from_json' and 'has_to_json' for std_fs::path;
Signed-off-by: drcosmin <cosmin.dr@pm.me>

* Fixed amalgamation

Signed-off-by: drcosmin <cosmin.dr@pm.me>

---------

Signed-off-by: drcosmin <cosmin.dr@pm.me>
This commit is contained in:
Cosmin D. authored and GitHub committed 2026-06-17 21:11:14 +02:00
1 parent a5f8e230ac
commit 02dfbea39d
3 files changed
+18

No files matched your search

@@ -450,6 +450,10 @@ inline void to_json(BasicJsonType& j, const std::basic_string<char8_t, Tr, Alloc
}
#endif
// Workaround for MSVC 19.51 (and possibly later): in large cpp files, the compiler may fail to resolve with generic has_to_json (issue #4996)
template<typename BasicJsonType>
struct has_to_json<BasicJsonType, std_fs::path, void> : std::true_type {};
template<typename BasicJsonType>
inline void to_json(BasicJsonType& j, const std_fs::path& p)
{