feat(templates): add TUniquePtr and the corresponding testing

This commit is contained in:
2023-01-06 18:28:31 +08:00
parent 55242cdd99
commit 403f0721e1
5 changed files with 952 additions and 1 deletions

View File

@ -146,7 +146,7 @@ void TestMemoryMalloc()
always_check(Memory::IsAligned(PtrC, 1024));
PtrC->A = 0x01234567;
always_check(PtrC->A == 0x01234567);
delete[] PtrC;
delete [] PtrC;
}