Core: Expand is_zero_constructible coverage

This commit is contained in:
Thaddeus Crews 2025-03-15 11:09:01 -05:00
parent 9e6ee9c5c3
commit 4320800621
No known key found for this signature in database
GPG key ID: 62181B86FE9E5D84
11 changed files with 49 additions and 0 deletions

View file

@ -276,3 +276,7 @@ struct VariantInternalAccessor<const Ref<T> &> {
static _FORCE_INLINE_ Ref<T> get(const Variant *v) { return Ref<T>(*VariantInternal::get_object(v)); }
static _FORCE_INLINE_ void set(Variant *v, const Ref<T> &p_ref) { VariantInternal::object_assign(v, p_ref); }
};
// Zero-constructing Ref initializes reference to nullptr (and thus empty).
template <typename T>
struct is_zero_constructible<Ref<T>> : std::true_type {};