3 Mar
2019
3 Mar
'19
8:27 p.m.
My point is, users who will read the introductory part of the documentation will get an incorrect impression that variant2 already offers a strong exception safety guarantee. The docs never state that, but when you read the clever things what this library does, some users will think, "surely this must be to achieve the strong guarantee". A not that states explicitly that this is not a strong guarantee would help avoid this confusion.
This is why I would suggest variant2 provide elemental
single_buffer_variant and double_buffer_variant, and let the end user
choose which they want.
Like how Outcome's result