1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-30 18:30:54 +00:00

Merge pull request #114222 from akien-mga/msvc-requiredptr-template

RequiredPtr: Fix template conditional for MSVC
This commit is contained in:
Rémi Verschelde
2025-12-21 10:41:36 +01:00

View File

@@ -130,7 +130,7 @@ public:
return _value;
}
template <typename T_Other, std::enable_if_t<std::is_base_of_v<RefCounted, T> && std::is_base_of_v<T, T_Other>, int> = 0>
template <typename U = T, typename T_Other, std::enable_if_t<std::is_base_of_v<RefCounted, U> && std::is_base_of_v<U, T_Other>, int> = 0>
_FORCE_INLINE_ operator Ref<T_Other>() const {
return Ref<T_Other>(_value);
}