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

Move value_initialized from Utility #76

Open
Kojoley opened this issue May 25, 2020 · 4 comments
Open

Move value_initialized from Utility #76

Kojoley opened this issue May 25, 2020 · 4 comments

Comments

@Kojoley
Copy link
Contributor

Kojoley commented May 25, 2020

The only user of that header is MPL, but it will allow to drop MPL dependence on Utility.

@pdimov
Copy link
Member

pdimov commented May 25, 2020

value_init.hpp uses TypeTraits and Core is not allowed to depend on TypeTraits.

@pdimov
Copy link
Member

pdimov commented May 25, 2020

I now remember that last time at looked at that, I came up with a way to insert the zero-initialization without using aligned storage, through a base class: https://godbolt.org/z/WMNRPc

@Kojoley
Copy link
Contributor Author

Kojoley commented May 25, 2020

Nice one! BCC55 is fine with that way.

@pdimov
Copy link
Member

pdimov commented May 25, 2020

See boostorg/utility#66.

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

No branches or pull requests

2 participants