Skip to content

Commit c734308

Browse files
authored
Merge 2018-11 LWG Motion 16
P0771R1 std::function move constructor should be noexcept Fixes #2422
2 parents 7f3de2b + 72365f2 commit c734308

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

source/utilities.tex

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14678,7 +14678,7 @@
1467814678
function() noexcept;
1467914679
function(nullptr_t) noexcept;
1468014680
function(const function&);
14681-
function(function&&);
14681+
function(function&&) noexcept;
1468214682
template<class F> function(F);
1468314683

1468414684
function& operator=(const function&);
@@ -14800,7 +14800,7 @@
1480014800

1480114801
\indexlibrary{\idxcode{function}!constructor}%
1480214802
\begin{itemdecl}
14803-
function(function&& f);
14803+
function(function&& f) noexcept;
1480414804
\end{itemdecl}
1480514805

1480614806
\begin{itemdescr}
@@ -14811,11 +14811,6 @@
1481114811
\tcode{f} is in a valid state with an unspecified value.
1481214812

1481314813
\pnum
14814-
\throws Shall not throw exceptions if \tcode{f}'s target is
14815-
a specialization of \tcode{reference_wrapper} or
14816-
a function pointer. Otherwise, may throw \tcode{bad_alloc} or
14817-
any exception thrown by the copy or move constructor
14818-
of the stored callable object.
1481914814
\begin{note} Implementations should avoid the use of
1482014815
dynamically allocated memory for small callable objects, for example,
1482114816
where \tcode{f}'s target is an object holding only a pointer or reference

0 commit comments

Comments
 (0)