From b342e1207c319b4c711ce4b35790838752627e1b Mon Sep 17 00:00:00 2001
From: dariomt <dariomt@gmail.com>
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<typename PointerType, typename
              std::enable_if<
                  std::is_pointer<PointerType>::value
-                 and std::is_const<PointerType>::value
+                 and std::is_const< typename std::remove_pointer<PointerType>::type >::value
                  , int>::type = 0>
     const PointerType get_ptr() const noexcept
     {