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

MSVC sizeof(stronk<type>) is not the same as sizeof(type) #24

Open
anders-wind opened this issue Sep 6, 2022 · 0 comments
Open

MSVC sizeof(stronk<type>) is not the same as sizeof(type) #24

anders-wind opened this issue Sep 6, 2022 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@anders-wind
Copy link
Collaborator

anders-wind commented Sep 6, 2022

MSVC stronk type is larger than the underlying type. Found when: static_assert(sizeof(int8_t_wrapper_type == sizeof(int8_t)); failed in CI.
This is probably due to padding, however wrapping stronk in #pragma pack(push, 1) did not help.
This might explain why construction is so much slower on MSVC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant