parent
560061b4a5
commit
6d6391ca46
|
|
@ -61,7 +61,7 @@ namespace Nz
|
|||
template<typename U>
|
||||
ObjectHandle<U> HandledObject<T>::CreateHandle()
|
||||
{
|
||||
static_assert(std::is_base_of_v<T, U>, "Cannot retrieve a handle for a non-related class");
|
||||
static_assert(std::is_base_of<T, U>::value, "Cannot retrieve a handle for a non-related class");
|
||||
return ObjectHandle<U>(static_cast<U*>(this));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ namespace Nz
|
|||
ObjectHandle<T>::ObjectHandle(const ObjectHandle<U>& ref) :
|
||||
m_handleData(ref.m_handleData)
|
||||
{
|
||||
static_assert(std::is_base_of_v<T, U>, "Can only implicitly convert from a derived to a base");
|
||||
static_assert(std::is_base_of<T, U>::value, "Can only implicitly convert from a derived to a base");
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
|
|
@ -41,7 +41,7 @@ namespace Nz
|
|||
{
|
||||
ref.m_handleData = Detail::HandleData::GetEmptyObject();
|
||||
|
||||
static_assert(std::is_base_of_v<T, U>, "Can only implicitly convert from a derived to a base");
|
||||
static_assert(std::is_base_of<T, U>::value, "Can only implicitly convert from a derived to a base");
|
||||
}
|
||||
|
||||
/*!
|
||||
|
|
|
|||
Loading…
Reference in New Issue