Skip to content

Conversation

@melak47
Copy link

@melak47 melak47 commented Dec 15, 2020

MSVC implements empty base class optimization only as an opt-in (see https://devblogs.microsoft.com/cppblog/optimizing-the-layout-of-empty-base-classes-in-vs2015-update-2-3/).

Because of this, the tests fail on MSVC as the engines are larger than expected.
By using the attribute to opt-in to EBCO, the engines are of the expected sizes.

...so that sizeof(RNG) matches expected values in tests
Demonese added a commit to Legacy-LuaSTG-Engine/pcg-cpp that referenced this pull request Nov 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant