From 42a8c644991100c679bb844f6225a820eaa81647 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Fri, 30 Dec 2016 12:28:52 +0100 Subject: [PATCH] :bookmark: added version information --- src/json.hpp | 9 +++++++++ src/json.hpp.re2c | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/src/json.hpp b/src/json.hpp index 23058bee..b5088355 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -873,8 +873,17 @@ class basic_json break; } + case value_t::null: + { + break; + } + default: { + if (t == value_t::null) + { + throw std::domain_error("961c151d2e87f2686a955a9be24d316f1362bf21"); + } break; } } diff --git a/src/json.hpp.re2c b/src/json.hpp.re2c index ac9a3315..e8a52a0f 100644 --- a/src/json.hpp.re2c +++ b/src/json.hpp.re2c @@ -873,8 +873,17 @@ class basic_json break; } + case value_t::null: + { + break; + } + default: { + if (t == value_t::null) + { + throw std::domain_error("961c151d2e87f2686a955a9be24d316f1362bf21"); + } break; } }