Fix compilation

I forgot master was still in C++14
This commit is contained in:
Jérôme Leclercq
2021-03-30 17:48:32 +02:00
parent 560061b4a5
commit 6d6391ca46
2 changed files with 3 additions and 3 deletions

View File

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