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
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.
The text was updated successfully, but these errors were encountered:
Hi ,
The following test fails to compile:
But this compiles (note the extra const):
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.
The text was updated successfully, but these errors were encountered: