From 716485a965cc6be49dc651833ec638be4b4f0548 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Mon, 20 Feb 2017 16:27:16 +0100 Subject: [PATCH] :construction: removed decay (#448) --- src/json.hpp | 3 +-- src/json.hpp.re2c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/json.hpp b/src/json.hpp index 6ea8c249..ab9b75d7 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -524,8 +524,7 @@ struct has_to_json ///////////// template::type, - typename BasicJsonType::boolean_t>::value, int> = 0> + std::is_same::value, int> = 0> void to_json(BasicJsonType& j, T b) noexcept { external_constructor::construct(j, b); diff --git a/src/json.hpp.re2c b/src/json.hpp.re2c index 72724a35..c409d18f 100644 --- a/src/json.hpp.re2c +++ b/src/json.hpp.re2c @@ -524,8 +524,7 @@ struct has_to_json ///////////// template::type, - typename BasicJsonType::boolean_t>::value, int> = 0> + std::is_same::value, int> = 0> void to_json(BasicJsonType& j, T b) noexcept { external_constructor::construct(j, b);