From 5198e1f2e46a5aeab7c836ad43bc450c53fcd084 Mon Sep 17 00:00:00 2001 From: dariomt Date: Fri, 16 Oct 2015 15:45:47 +0200 Subject: [PATCH] removed const in get_ptr() by accident --- src/json.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/json.hpp b/src/json.hpp index d45ab015..30e6b2fe 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -2400,10 +2400,10 @@ class basic_json std::is_pointer::value and std::is_const< typename std::remove_pointer::type >::value , int>::type = 0> - PointerType get_ptr() const noexcept + const PointerType get_ptr() const noexcept { // delegate the call to get_impl_ptr<>() const - return get_impl_ptr(static_cast(nullptr)); + return get_impl_ptr(static_cast(nullptr)); } /*!