You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
wrong enable_if for const pointer (instead of pointer-to-const) #134
I think that the problem is the additional check for the const overload of get_ptr and std::is_const<PointerType>::value
I think what you intended was to check that the template parameter is a "pointer-to-const" but what you are actually checking is if you got a "const pointer".
I believe the right fix is to check for "pointer-to-const" like this: and std::is_const< typename std::remove_pointer<PointerType>::type >::value
It works in VS2015.
Activity
Detect correctly pointer-to-const
dariomt commentedon Oct 16, 2015
PR #137 ready!
nlohmann commentedon Dec 6, 2015
After merging #137, this issue can be closed.