Skip to content

Commit f70fe44

Browse files
burblebeetkoeppe
authored andcommitted
LWG3764 reference_wrapper::operator() should propagate noexcept
1 parent 89abc99 commit f70fe44

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/utilities.tex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10188,7 +10188,8 @@
1018810188

1018910189
// \ref{refwrap.invoke}, invocation
1019010190
template<class... ArgTypes>
10191-
constexpr invoke_result_t<T&, ArgTypes...> operator()(ArgTypes&&...) const;
10191+
constexpr invoke_result_t<T&, ArgTypes...> operator()(ArgTypes&&...) const
10192+
noexcept(is_nothrow_invocable_v<T&, ArgTypes...>);
1019210193
};
1019310194

1019410195
template<class T>
@@ -10297,7 +10298,7 @@
1029710298
\begin{itemdecl}
1029810299
template<class... ArgTypes>
1029910300
constexpr invoke_result_t<T&, ArgTypes...>
10300-
operator()(ArgTypes&&... args) const;
10301+
operator()(ArgTypes&&... args) const noexcept(is_nothrow_invocable_v<T&, ArgTypes...>);
1030110302
\end{itemdecl}
1030210303

1030310304
\begin{itemdescr}

0 commit comments

Comments
 (0)