diff --git a/src/json.hpp b/src/json.hpp index f3f97ed3..56d6f3f0 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -2385,7 +2385,7 @@ class basic_json template::value - and std::is_const::value + and std::is_const< typename std::remove_pointer::type >::value , int>::type = 0> const PointerType get_ptr() const noexcept { diff --git a/src/json.hpp.re2c b/src/json.hpp.re2c index ea4034a1..c38e452e 100644 --- a/src/json.hpp.re2c +++ b/src/json.hpp.re2c @@ -2385,7 +2385,7 @@ class basic_json template::value - and std::is_const::value + and std::is_const< typename std::remove_pointer::type >::value , int>::type = 0> const PointerType get_ptr() const noexcept {