Merge pull request #137 from dariomt/patch-3
Detect correctly pointer-to-const
This commit is contained in:
commit
8f379ef3eb
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue