fix(typetraits): optimize TIsScopedEnum implementation and flag TInvokeResult errors

This commit is contained in:
2021-12-26 15:27:56 +08:00
parent 73bb0e9cfa
commit fc38e3d913
3 changed files with 5 additions and 4 deletions

View File

@ -437,6 +437,7 @@ void TestTypeTraits()
always_check((TypeTraits::TIsSame<int32, TypeTraits::TInvokeResult<int32()>::Type>::Value));
always_check((TypeTraits::TIsSame<int32, TypeTraits::TInvokeResult<int32(int32), int32>::Type>::Value));
// always_check((TypeTraits::TIsSame<char(&)[2], TypeTraits::TInvokeResult<char(&())[2]>::Type>::Value));
always_check((TypeTraits::TIsSame<void, TypeTraits::TVoid<int32>::Type>::Value));
always_check((TypeTraits::TIsSame<void, TypeTraits::TVoid<int32, int64>::Type>::Value));