Change Ref<T> to allow non const access to ptr

pull/1116/head
Nana Sakisaka 2023-05-17 19:24:09 +09:00
parent 1c18413de0
commit 48635729b9
1 changed files with 3 additions and 14 deletions

View File

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