| 3960 | { |
| 3961 | template<typename BasicJsonType> |
| 3962 | void from_json(const BasicJsonType& j, typename std::nullptr_t& n) |
| 3963 | { |
| 3964 | if (JSON_HEDLEY_UNLIKELY(!j.is_null())) |
| 3965 | { |
| 3966 | JSON_THROW(type_error::create(302, "type must be null, but is " + std::string(j.type_name()), j)); |
| 3967 | } |
| 3968 | n = nullptr; |
| 3969 | } |
| 3970 | |
| 3971 | // overloads for basic_json template parameters |
| 3972 | template < typename BasicJsonType, typename ArithmeticType, |
no test coverage detected