refactor(templates): optimize TAny and TFunction and fix TFunction alignment problem

This commit is contained in:
2022-11-13 22:21:00 +08:00
parent 096150a305
commit 9ff3b1c583
3 changed files with 194 additions and 121 deletions

View File

@ -1233,6 +1233,8 @@ void TestFunction()
TFunction<bool(bool)> Identity = [](bool In) { return In; };
TFunction<bool(bool)> NotIdentity = NotFn(Identity);
always_check(NotFn(Identity)(false));
always_check(Identity(true));
always_check(NotIdentity(false));
}