From c154f3133d300ba53be90a052bbd996be458b7a4 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Tue, 24 Jan 2017 15:02:35 +0100 Subject: [PATCH] :construction: rephrased assertions --- src/json.hpp | 6 ++++-- src/json.hpp.re2c | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/json.hpp b/src/json.hpp index 5987b385..f7af945a 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -833,7 +833,8 @@ struct to_json_fn template void call(BasicJsonType&, T&&, priority_tag<0>) const noexcept { - static_assert(sizeof(BasicJsonType) == 0, "to_json method in T's namespace can not be called"); + static_assert(sizeof(BasicJsonType) == 0, + "could not find to_json() method in T's namespace"); } public: @@ -859,7 +860,8 @@ struct from_json_fn template void call(const BasicJsonType&, T&, priority_tag<0>) const noexcept { - static_assert(sizeof(BasicJsonType) == 0, "from_json method in T's namespace can not be called"); + static_assert(sizeof(BasicJsonType) == 0, + "could not find from_json() method in T's namespace"); } public: diff --git a/src/json.hpp.re2c b/src/json.hpp.re2c index 0a7f207d..039fc9fb 100644 --- a/src/json.hpp.re2c +++ b/src/json.hpp.re2c @@ -833,7 +833,8 @@ struct to_json_fn template void call(BasicJsonType&, T&&, priority_tag<0>) const noexcept { - static_assert(sizeof(BasicJsonType) == 0, "to_json method in T's namespace can not be called"); + static_assert(sizeof(BasicJsonType) == 0, + "could not find to_json() method in T's namespace"); } public: @@ -859,7 +860,8 @@ struct from_json_fn template void call(const BasicJsonType&, T&, priority_tag<0>) const noexcept { - static_assert(sizeof(BasicJsonType) == 0, "from_json method in T's namespace can not be called"); + static_assert(sizeof(BasicJsonType) == 0, + "could not find from_json() method in T's namespace"); } public: