LLNL / ygm

Other
31 stars 22 forks source link

Feature/ygm ptr constness #223

Closed steiltre closed 3 months ago

steiltre commented 3 months ago

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.