From d1479e47bb0123d0e4def6c31b99ba14b344b009 Mon Sep 17 00:00:00 2001
From: Niels Lohmann <mail@nlohmann.me>
Date: Sat, 18 Feb 2017 11:01:03 +0100
Subject: [PATCH] :lipstick: added assertion message

---
 src/json.hpp      | 6 ++++--
 src/json.hpp.re2c | 4 ++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/json.hpp b/src/json.hpp
index 05ed2068..7385768e 100644
--- a/src/json.hpp
+++ b/src/json.hpp
@@ -8251,7 +8251,8 @@ class basic_json
                 return;
             }
 
-            static_assert(std::numeric_limits<NumberType>::digits10 <= s_capacity, "");
+            static_assert(std::numeric_limits<NumberType>::digits10 <= s_capacity,
+                          "unexpected NumberType");
 
             const bool is_neg = x < 0;
             size_t i = 0;
@@ -8283,7 +8284,8 @@ class basic_json
             }
 
             static constexpr auto d = std::numeric_limits<NumberType>::digits10;
-            static_assert(d == 6 or d == 15 or d == 16 or d == 17, "");
+            static_assert(d == 6 or d == 15 or d == 16 or d == 17,
+                          "unexpected NumberType");
 
             static constexpr auto fmt = d == 6  ? "%.7g"
                                         : d == 15 ? "%.16g"
diff --git a/src/json.hpp.re2c b/src/json.hpp.re2c
index eaee6157..99ce5c89 100644
--- a/src/json.hpp.re2c
+++ b/src/json.hpp.re2c
@@ -8252,7 +8252,7 @@ class basic_json
             }
 
             static_assert(std::numeric_limits<NumberType>::digits10 <= s_capacity,
-                "unexpected NumberType");
+                          "unexpected NumberType");
 
             const bool is_neg = x < 0;
             size_t i = 0;
@@ -8285,7 +8285,7 @@ class basic_json
 
             static constexpr auto d = std::numeric_limits<NumberType>::digits10;
             static_assert(d == 6 or d == 15 or d == 16 or d == 17,
-                "unexpected NumberType");
+                          "unexpected NumberType");
 
             static constexpr auto fmt = d == 6  ? "%.7g"
                                         : d == 15 ? "%.16g"