ParFlow plugin does not build with nlohmann-json 3.10.4.
Building ParaView with ParFlow plugin fails with
In file included from /home/glow/work/paraview/pv1/src/Plugins/ParFlow/IO/vtkParFlowMetaReader.cxx:3:
/home/glow/work/paraview/pv1/src/Plugins/ParFlow/IO/vtkVectorJSON.h: In function ‘void from_json(const json&, vtkTuple<A, Size>&)’:
/home/glow/work/paraview/pv1/src/Plugins/ParFlow/IO/vtkVectorJSON.h:22:47: error: no matching function for call to ‘nlohmann::detail::type_error::create(int, std::__cxx11::basic_string<char>)’
22 | throw nlohmann::detail::type_error::create(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
23 | 302, "type must be array, but is " + std::string(j.type_name()));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/nlohmann/detail/conversions/from_json.hpp:15,
from /usr/include/nlohmann/adl_serializer.hpp:6,
from /usr/include/nlohmann/json.hpp:51,
from /home/glow/work/paraview/pv1/src/Plugins/ParFlow/IO/vtkParFlowMetaReader.h:11,
from /home/glow/work/paraview/pv1/src/Plugins/ParFlow/IO/vtkParFlowMetaReader.cxx:2:
/usr/include/nlohmann/detail/exceptions.hpp:331:23: note: candidate: ‘template<class BasicJsonType> static nlohmann::detail::type_error nlohmann::detail::type_error::create(int, const string&, const BasicJsonType&)’
331 | static type_error create(int id_, const std::string& what_arg, const BasicJsonType& context)
| ^~~~~~
/usr/include/nlohmann/detail/exceptions.hpp:331:23: note: template argument deduction/substitution failed:
In file included from /home/glow/work/paraview/pv1/src/Plugins/ParFlow/IO/vtkParFlowMetaReader.cxx:3:
/home/glow/work/paraview/pv1/src/Plugins/ParFlow/IO/vtkVectorJSON.h:22:47: note: candidate expects 3 arguments, 2 provided
22 | throw nlohmann::detail::type_error::create(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
23 | 302, "type must be array, but is " + std::string(j.type_name()));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/glow/work/paraview/pv1/src/Plugins/ParFlow/IO/vtkVectorJSON.h:27:47: error: no matching function for call to ‘nlohmann::detail::type_error::create(int, const char [25])’
27 | throw nlohmann::detail::type_error::create(302, "array sizes do not match");
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/nlohmann/detail/conversions/from_json.hpp:15,
from /usr/include/nlohmann/adl_serializer.hpp:6,
from /usr/include/nlohmann/json.hpp:51,
from /home/glow/work/paraview/pv1/src/Plugins/ParFlow/IO/vtkParFlowMetaReader.h:11,
from /home/glow/work/paraview/pv1/src/Plugins/ParFlow/IO/vtkParFlowMetaReader.cxx:2:
/usr/include/nlohmann/detail/exceptions.hpp:331:23: note: candidate: ‘template<class BasicJsonType> static nlohmann::detail::type_error nlohmann::detail::type_error::create(int, const string&, const BasicJsonType&)’
331 | static type_error create(int id_, const std::string& what_arg, const BasicJsonType& context)
| ^~~~~~
/usr/include/nlohmann/detail/exceptions.hpp:331:23: note: template argument deduction/substitution failed:
In file included from /home/glow/work/paraview/pv1/src/Plugins/ParFlow/IO/vtkParFlowMetaReader.cxx:3:
/home/glow/work/paraview/pv1/src/Plugins/ParFlow/IO/vtkVectorJSON.h:27:47: note: candidate expects 3 arguments, 2 provided
27 | throw nlohmann::detail::type_error::create(302, "array sizes do not match");
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ninja: build stopped: subcommand failed.