From 72365f2ba3d44ac02875e12e3f226e5c6e859cc9 Mon Sep 17 00:00:00 2001 From: Dawn Perchik Date: Wed, 14 Nov 2018 12:23:46 -0800 Subject: [PATCH] P0771R1 std::function move constructor should be noexcept --- source/utilities.tex | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/source/utilities.tex b/source/utilities.tex index f1029cea25..0a4239556a 100644 --- a/source/utilities.tex +++ b/source/utilities.tex @@ -14678,7 +14678,7 @@ function() noexcept; function(nullptr_t) noexcept; function(const function&); - function(function&&); + function(function&&) noexcept; template function(F); function& operator=(const function&); @@ -14800,7 +14800,7 @@ \indexlibrary{\idxcode{function}!constructor}% \begin{itemdecl} -function(function&& f); +function(function&& f) noexcept; \end{itemdecl} \begin{itemdescr} @@ -14811,11 +14811,6 @@ \tcode{f} is in a valid state with an unspecified value. \pnum -\throws Shall not throw exceptions if \tcode{f}'s target is -a specialization of \tcode{reference_wrapper} or -a function pointer. Otherwise, may throw \tcode{bad_alloc} or -any exception thrown by the copy or move constructor -of the stored callable object. \begin{note} Implementations should avoid the use of dynamically allocated memory for small callable objects, for example, where \tcode{f}'s target is an object holding only a pointer or reference