Skip to content

Commit

Permalink
Delete nullptr operator
Browse files Browse the repository at this point in the history
  • Loading branch information
AThousandShips committed Aug 29, 2024
1 parent 28a1cd7 commit 61e7053
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/object/ref_counted.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ class Ref {
_FORCE_INLINE_ bool operator!=(const T *p_ptr) const {
return reference != p_ptr;
}
bool operator==(std::nullptr_t) const = delete;
bool operator!=(std::nullptr_t) const = delete;

_FORCE_INLINE_ bool operator<(const Ref<T> &p_r) const {
return reference < p_r.reference;
Expand Down

0 comments on commit 61e7053

Please sign in to comment.