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) {