Inside the file "bits/invoke.h", I see
template<typename _Res, typename _MemFun, typename _Tp, typename... _Args>
constexpr _Res
__invoke_impl(__invoke_memfun_deref, _MemFun&& __f, _Tp&& __t,
_Args&&... __args)
{
return ((*std::forward<_Tp>(__t)).*__f)(std::forward<_Args>(__args)...);
}
See how the pointer is dereferenced:
((*std::forward<_Tp>(__t)).*__f)
I am implementing my chimeric_ptr, and it would be very easy to
implement if I could just change the above line to:
(std::forward<_Tp>(__t)->*__f)
I can't think of any problems that might arise from me making this
change, but I just though I'd ask here just in case someone can think
of something.