With corrections

This commit is contained in:
Erik Frojdh
2022-03-28 14:30:45 +02:00
parent 039e1fd829
commit 13ec32c79a
4 changed files with 5 additions and 6 deletions

View File

@ -126,10 +126,8 @@ template <typename T> class SharedMemory {
RemoveSharedMemory();
throw SharedMemoryError(msg);
}
// int *pInt = new (buf) int(3);
shared_struct = MapSharedMemory();
new (shared_struct) T{}; // is this ok?
new (shared_struct) T{};
LOG(logINFO) << "Shared memory created " << name;
}