| 2896 | { |
| 2897 | template<typename BasicJsonType> |
| 2898 | void from_json(const BasicJsonType& j, typename std::nullptr_t& n) |
| 2899 | { |
| 2900 | if (JSON_HEDLEY_UNLIKELY(not j.is_null())) |
| 2901 | { |
| 2902 | JSON_THROW(type_error::create(302, "type must be null, but is " + std::string(j.type_name()))); |
| 2903 | } |
| 2904 | n = nullptr; |
| 2905 | } |
| 2906 | |
| 2907 | // overloads for basic_json template parameters |
| 2908 | template<typename BasicJsonType, typename ArithmeticType, |
no test coverage detected