Fixes constness issue with dereferencing ygm_ptr<T>. As is, operator->() on a const ygm_ptr<T> returns a const T*, giving a pointer to const object instead of const pointer to object.
Checking here, const smart pointers return a T * when calling operator->(), but I could see an argument for this returning a const pointer instead.
Fixes constness issue with dereferencing
ygm_ptr<T>
. As is,operator->()
on aconst ygm_ptr<T>
returns aconst T*
, giving a pointer to const object instead of const pointer to object.Checking here, const smart pointers return a
T *
when callingoperator->()
, but I could see an argument for this returning a const pointer instead.