You've already forked godot
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:
@@ -130,7 +130,7 @@ public:
|
|||||||
return _value;
|
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 {
|
_FORCE_INLINE_ operator Ref<T_Other>() const {
|
||||||
return Ref<T_Other>(_value);
|
return Ref<T_Other>(_value);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user