Skip to content

Commit

Permalink
Merge pull request #137 from dariomt/patch-3
Browse files Browse the repository at this point in the history
Detect correctly pointer-to-const
  • Loading branch information
nlohmann committed Oct 20, 2015
2 parents 746c1a7 + 8162a6e commit 8f379ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion src/json.hpp.re2c
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 8f379ef

Please sign in to comment.