| 3491 | { |
| 3492 | template<typename BasicJsonType> |
| 3493 | void from_json(const BasicJsonType& j, typename std::nullptr_t& n) |
| 3494 | { |
| 3495 | if (JSON_HEDLEY_UNLIKELY(!j.is_null())) |
| 3496 | { |
| 3497 | JSON_THROW(type_error::create(302, "type must be null, but is " + std::string(j.type_name()))); |
| 3498 | } |
| 3499 | n = nullptr; |
| 3500 | } |
| 3501 | |
| 3502 | // overloads for basic_json template parameters |
| 3503 | template < typename BasicJsonType, typename ArithmeticType, |
no test coverage detected