Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable empty base class optimization on MSVC #66

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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
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