Renamed template parameter and added some comments.

This commit is contained in:
Anthony VH
2021-01-09 17:45:56 +01:00
parent 1e825e4f92
commit c0a8b45bbb
3 changed files with 54 additions and 22 deletions
@@ -462,6 +462,8 @@ struct from_json_fn
return from_json(j, val);
}
// overload to pass calls to built-in from_json functions for non-default constructible STL
// types (e.g. std::array<X>, where X is not default constructible).
template<typename BasicJsonType, typename T>
auto operator()(const BasicJsonType& j, detail::tag<T> t) const
noexcept(noexcept(from_json(j, t)))