| 3424 | { |
| 3425 | template<typename BasicJsonType> |
| 3426 | void from_json(const BasicJsonType& j, typename std::nullptr_t& n) |
| 3427 | { |
| 3428 | if (JSON_HEDLEY_UNLIKELY(!j.is_null())) |
| 3429 | { |
| 3430 | JSON_THROW(type_error::create(302, "type must be null, but is " + std::string(j.type_name()))); |
| 3431 | } |
| 3432 | n = nullptr; |
| 3433 | } |
| 3434 | |
| 3435 | // overloads for basic_json template parameters |
| 3436 | template < typename BasicJsonType, typename ArithmeticType, |
no test coverage detected