realm / realm-cpp

Realm C++
Apache License 2.0
74 stars 17 forks source link

Add ability to disable aligned storage for bridged types #220

Closed leemaguire closed 3 months ago

leemaguire commented 4 months ago

Currently when building with CMake we default to always generating the bridging headers size and aligned size for usage in std::aligned_storage. This PR allows you to override that and use std::shared_ptrfor the Core bridged types instead. This is required when we can't generate the bridging headers correctly or a package manager might not allow it.