Boost logo

Boost :

Subject: Re: [boost] [variant2] documentation request
From: Niall Douglas (s_sourceforge_at_[hidden])
Date: 2019-03-03 20:27:05


> 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<T, E> is a template alias to basic_result.

Niall


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk