|
Boost : |
Subject: Re: [boost] [outcome] comments on Regular ops
From: Andrzej Krzemienski (akrzemi1_at_[hidden])
Date: 2018-01-22 14:28:35
2018-01-22 14:59 GMT+01:00 Andrzej Krzemienski <akrzemi1_at_[hidden]>:
>
> 2. Swap
>
> For non-trivially-copyable types, it looks like (similarly to
> std::variant) `result` cannot provide the strong exception safety
> guarantee. You may need to both move-construct `T` and `EC` and both can
> fail.
>
Plus, documentation does not mention that the swap provides only a basic
guarantee.
Regards,
&rzej;
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk