15 Jun
2017
15 Jun
'17
11:12 a.m.
On Thu, Jun 15, 2017 at 4:17 AM, Gavin Lambert via Boost wrote:
If the node actually contains aligned_storage rather than T, doesn't that then require reinterpret_casting everywhere (since everything will expect a T*, not an aligned_storage_t<>*)? Isn't that usually considered a bad thing?
Yes., and...
It also seems really error-prone,
Yes. :) i.e. It is easy to make the mistake you mentioned, among others. The model isn't nice (but it is what we have, until someone designs a less terrible one). Glen