feat(templates): add TVariant and the corresponding testing
This commit is contained in:
@ -26,10 +26,6 @@ template <typename T>
|
||||
constexpr typename TRemoveReference<T>::Type&& MoveTemp(T&& Obj)
|
||||
{
|
||||
typedef typename TRemoveReference<T>::Type CastType;
|
||||
|
||||
static_assert(TIsLValueReference<T>::Value, "MoveTemp called on an rvalue.");
|
||||
static_assert(!TIsConst<CastType>::Value, "MoveTemp called on a const object.");
|
||||
|
||||
return (CastType&&)Obj;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user