Fix StorageAccessor move assignment

* Added Unittest for this
* Fixed missing include in test
This commit is contained in:
2022-06-20 15:15:33 +02:00
parent b18410aa63
commit b60e4bcb90
3 changed files with 21 additions and 1 deletions

View File

@ -13,7 +13,7 @@ StorageAccessor::StorageAccessor(store_address_t storeId, StorageManagerIF* stor
StorageAccessor& StorageAccessor::operator=(StorageAccessor&& other) {
// Call the parent move assignment and also assign own member.
dataPointer = other.dataPointer;
StorageAccessor::operator=(std::move(other));
ConstStorageAccessor::operator=(std::move(other));
return *this;
}