From b342e1207c319b4c711ce4b35790838752627e1b Mon Sep 17 00:00:00 2001 From: dariomt Date: Fri, 16 Oct 2015 11:11:16 +0200 Subject: [PATCH] Detect correctly pointer-to-const The intention of the current code is to detect a pointer-to-const but instead it is detecting a const-pointer. See #134 --- src/json.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/json.hpp b/src/json.hpp index 7e174d72..aa85fad3 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 {