| 4591 | |
| 4592 | template<typename BasicJsonType> |
| 4593 | inline void from_json(const BasicJsonType& j, typename std::nullptr_t& n) |
| 4594 | { |
| 4595 | if (JSON_HEDLEY_UNLIKELY(!j.is_null())) |
| 4596 | { |
| 4597 | JSON_THROW(type_error::create(302, concat("type must be null, but is ", j.type_name()), &j)); |
| 4598 | } |
| 4599 | n = nullptr; |
| 4600 | } |
| 4601 | |
| 4602 | // overloads for basic_json template parameters |
| 4603 | template < typename BasicJsonType, typename ArithmeticType, |
no test coverage detected