|
@@ -3951,7 +3951,8 @@ T conditional_static_cast(U value)
|
|
|
|
|
|
|
|
|
#ifdef JSON_HAS_CPP_17
|
|
|
- #include <filesystem>
|
|
|
+ // #include <filesystem>
|
|
|
+ #include <boost/filesystem.hpp>
|
|
|
#endif
|
|
|
|
|
|
namespace nlohmann
|
|
@@ -4381,7 +4382,8 @@ void from_json(const BasicJsonType& j, std::unordered_map<Key, Value, Hash, KeyE
|
|
|
|
|
|
#ifdef JSON_HAS_CPP_17
|
|
|
template<typename BasicJsonType>
|
|
|
-void from_json(const BasicJsonType& j, std::filesystem::path& p)
|
|
|
+// void from_json(const BasicJsonType& j, std::filesystem::path& p)
|
|
|
+void from_json(const BasicJsonType& j, boost::filesystem::path& p)
|
|
|
{
|
|
|
if (JSON_HEDLEY_UNLIKELY(!j.is_string()))
|
|
|
{
|
|
@@ -4627,7 +4629,8 @@ class tuple_element<N, ::nlohmann::detail::iteration_proxy_value<IteratorType >>
|
|
|
|
|
|
|
|
|
#ifdef JSON_HAS_CPP_17
|
|
|
- #include <filesystem>
|
|
|
+ // #include <filesystem>
|
|
|
+ #include <boost/filesystem.hpp>
|
|
|
#endif
|
|
|
|
|
|
namespace nlohmann
|
|
@@ -5004,7 +5007,8 @@ void to_json(BasicJsonType& j, const T& t)
|
|
|
|
|
|
#ifdef JSON_HAS_CPP_17
|
|
|
template<typename BasicJsonType>
|
|
|
-void to_json(BasicJsonType& j, const std::filesystem::path& p)
|
|
|
+// void to_json(BasicJsonType& j, const std::filesystem::path& p)
|
|
|
+void to_json(BasicJsonType& j, const boost::filesystem::path& p)
|
|
|
{
|
|
|
j = p.string();
|
|
|
}
|