From 6e6e1c9b1fec37b3f400ce347195666701d3910b Mon Sep 17 00:00:00 2001 From: Niels Date: Tue, 30 Aug 2016 18:26:07 +0200 Subject: [PATCH] implemented idea from #290 --- src/json.hpp | 2 +- src/json.hpp.re2c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/json.hpp b/src/json.hpp index 0aa45af52..8ac262e69 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -5942,7 +5942,7 @@ class basic_json template::value and std::is_integral::type>::value and - sizeof(std::remove_pointer) == 1, int>::type = 0> + sizeof(typename std::remove_pointer::type) == 1, int>::type = 0> static basic_json parse(const CharPT s, const parser_callback_t cb = nullptr) { diff --git a/src/json.hpp.re2c b/src/json.hpp.re2c index dbc5dec3b..3b6764580 100644 --- a/src/json.hpp.re2c +++ b/src/json.hpp.re2c @@ -5942,7 +5942,7 @@ class basic_json template::value and std::is_integral::type>::value and - sizeof(std::remove_pointer) == 1, int>::type = 0> + sizeof(typename std::remove_pointer::type) == 1, int>::type = 0> static basic_json parse(const CharPT s, const parser_callback_t cb = nullptr) {