mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 02:22:57 +01:00
d28129cbc4
Instead, replace it with std::max_align_t in the Any implementation, as really we would like to be able to store any object with any alignment in the small object optimization case. Typically the size and alignment of std::max_align_t is 8 or 16 on most platforms. Added a static assert to ensure that this change doesn't result in wasting more unused memory in case the size of the storage buffer is smaller than this maximum alignment (which is right now 64, so shall be ok on all platforms). |
||
---|---|---|
.. | ||
Poco |