Merge pull request #64789 from derammo/derammo_const_ref

Change Ref<T> to allow non const access to ptr
This commit is contained in:
Rémi Verschelde 2023-05-17 11:25:13 +02:00
commit 56fc6316b7
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -97,26 +97,15 @@ public:
return reference != p_r.reference; return reference != p_r.reference;
} }
_FORCE_INLINE_ T *operator->() { _FORCE_INLINE_ T *operator*() const {
return reference; return reference;
} }
_FORCE_INLINE_ T *operator*() { _FORCE_INLINE_ T *operator->() const {
return reference; return reference;
} }
_FORCE_INLINE_ const T *operator->() const { _FORCE_INLINE_ T *ptr() const {
return reference;
}
_FORCE_INLINE_ const T *ptr() const {
return reference;
}
_FORCE_INLINE_ T *ptr() {
return reference;
}
_FORCE_INLINE_ const T *operator*() const {
return reference; return reference;
} }