Merge pull request #1116 from saki7/Ref-allow-non-const-access

Change Ref<T> to allow non const access to ptr
pull/1135/head
David Snopek 2023-05-24 21:17:25 -05:00 committed by GitHub
commit 0d0d5a670b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 14 deletions

View File

@ -88,26 +88,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;
}