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
1 changed files with 3 additions and 14 deletions

View File

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