fix(memory): fix compile error when memory constructs such as Memory::CopyConstruct for cv qualifiers type

This commit is contained in:
2022-06-05 22:52:55 +08:00
parent 8b902d15a4
commit 8e31a82a1f
2 changed files with 12 additions and 13 deletions

View File

@ -165,11 +165,11 @@ void TestMemoryOperator()
FTracker* PtrB = reinterpret_cast<FTracker*>(Memory::Malloc(sizeof(FTracker)));
FTracker::Status = 0;
Memory::DefaultConstruct(PtrA);
Memory::DefaultConstruct<FTracker>(PtrA);
always_check(FTracker::Status == -1);
FTracker::Status = 1;
Memory::Construct(PtrA, PtrB);
Memory::Construct<FTracker>(PtrA, PtrB);
always_check(FTracker::Status == -1);
FTracker::Status = 1;