
25 May
2017
25 May
'17
5:58 p.m.
Niall Douglas wrote:
I'd choose uninitialised bytes or default constructing T before default constructing E to a null error_code.
I'd choose (by a factor of 10^3) a singular empty state before uninitialized bytes. If it comes to that.
In fact, seeing people suggest default-constructing to uninitialized bytes is a very strong argument - in fact the strongest argument so far - in favor of having a formal empty state. I almost regret I brought that up.