27 Jun
2019
27 Jun
'19
4:32 p.m.
On 6/27/19 8:43 AM, Andrey Semashev via Boost wrote: - From the caller's perspective, a noexcept function will never throw.
In anycase I should have phrased the above as:
Is swap guaranteed to succeed?
In general, no. It is only guaranteed to succeed if it is noexcept. See above when it is noexcept.
that allows to test this.
A... - I'm still confused. How can one say that swap is guaranteed to succeed when it can result in calling terminate()? In C++17 there is is_nothrow_swappbale trait this leads to useful information
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost