27 May
2017
27 May
'17
4:59 p.m.
2017-05-27 18:53 GMT+02:00 Peter Dimov via Boost
Andrzej Krzemienski wrote:
If they do, you only have a basic guarantee: you can destroy, assign to,
or maybe call valueless_by_exception(). Nothing more.
This is not the basic guarantee. It's one step lower than basic and has no name because it deliberately hasn't been named (by Dave Abrahams).
How come? I thought bsic guarantee menas I just should be able to safely destroy it without UB or resource leaks, and perhaps to reset it. How does the above not meet these guarantees? Regards, &rzej;