Merge pull request #64789 from derammo/derammo_const_ref
Change Ref<T> to allow non const access to ptr
This commit is contained in:
commit
56fc6316b7
1 changed files with 3 additions and 14 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue