diff --git a/src/json.hpp b/src/json.hpp index 7e174d7203..aa85fad3eb 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 0ffddd503b..8a1bea7603 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 {