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

RequiredPtr: Fix template conditional for MSVC

Fixes #114206.
This commit is contained in:
Rémi Verschelde
2025-12-19 23:40:25 +01:00
parent 551ce8d47f
commit d2eb458b2b

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);
}