core icon indicating copy to clipboard operation
core copied to clipboard

Move `value_initialized` from Utility

Open Kojoley opened this issue 5 years ago • 4 comments

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

Kojoley avatar May 25 '20 00:05 Kojoley

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

pdimov avatar May 25 '20 00:05 pdimov

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

pdimov avatar May 25 '20 00:05 pdimov

Nice one! BCC55 is fine with that way.

Kojoley avatar May 25 '20 01:05 Kojoley

See https://github.com/boostorg/utility/pull/66.

pdimov avatar May 25 '20 02:05 pdimov