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