diff --git a/include/Nazara/Core/ObjectRef.inl b/include/Nazara/Core/ObjectRef.inl index febc2d528..cf15229d6 100644 --- a/include/Nazara/Core/ObjectRef.inl +++ b/include/Nazara/Core/ObjectRef.inl @@ -135,6 +135,8 @@ template template NzObjectRef& NzObjectRef::operator=(const NzObjectRef& ref) { + static_assert(std::is_convertible::value, "U is not implicitly convertible to T"); + Reset(ref.Get()); return *this;