Backport from mainline
2017-11-16 Jonathan Wakely <jwakely@redhat.com>
* include/std/future (shared_future): Add noexcept to copy constructor
and copy-assignment operator (LWG 2799).
From-SVN: r263422
2018-08-08 Jonathan Wakely <jwakely@redhat.com>
+ Backport from mainline
+ 2017-11-16 Jonathan Wakely <jwakely@redhat.com>
+
+ * include/std/future (shared_future): Add noexcept to copy constructor
+ and copy-assignment operator (LWG 2799).
+
Backport from mainline
2017-06-17 Jonathan Wakely <jwakely@redhat.com>
constexpr shared_future() noexcept : _Base_type() { }
/// Copy constructor
- shared_future(const shared_future& __sf) : _Base_type(__sf) { }
+ shared_future(const shared_future& __sf) noexcept : _Base_type(__sf) { }
/// Construct from a future rvalue
shared_future(future<_Res>&& __uf) noexcept
: _Base_type(std::move(__sf))
{ }
- shared_future& operator=(const shared_future& __sf)
+ shared_future& operator=(const shared_future& __sf) noexcept
{
shared_future(__sf)._M_swap(*this);
return *this;