Skip to content

Commit e4dda2f

Browse files
committed
[func.wrap.ref.deduct] Replace constant_arg_t with constant_wrapper in deduction guides
1 parent ef1752d commit e4dda2f

1 file changed

Lines changed: 9 additions & 12 deletions

File tree

source/utilities.tex

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15193,10 +15193,10 @@
1519315193
// \ref{func.wrap.ref.deduct}, deduction guides
1519415194
template<class F>
1519515195
function_ref(F*) -> function_ref<F>;
15196-
template<auto f>
15197-
function_ref(constant_arg_t<f>) -> function_ref<@\seebelow@>;
15198-
template<auto f, class T>
15199-
function_ref(constant_arg_t<f>, T&&) -> function_ref<@\seebelow@>;
15196+
template<auto c, class F0>
15197+
function_ref(constant_wrapper<c, F>) -> function_ref<@\seebelow@>;
15198+
template<auto c, class F, class T>
15199+
function_ref(constant_wrapper<c, F>, T&&) -> function_ref<@\seebelow@>;
1520015200
}
1520115201
\end{codeblock}
1520215202

@@ -15446,13 +15446,13 @@
1544615446
\end{itemdescr}
1544715447

1544815448
\begin{itemdecl}
15449-
template<auto f>
15450-
function_ref(constant_arg_t<f>) -> function_ref<@\seebelow@>;
15449+
template<auto c, class F0>
15450+
function_ref(constant_wrapper<c, F0>) -> function_ref<@\seebelow@>;
1545115451
\end{itemdecl}
1545215452

1545315453
\begin{itemdescr}
1545415454
\pnum
15455-
Let \tcode{F} be \tcode{remove_pointer_t<decltype(f)>}.
15455+
Let \tcode{F} be \tcode{remove_pointer_t<F0>}.
1545615456

1545715457
\pnum
1545815458
\constraints
@@ -15464,14 +15464,11 @@
1546415464
\end{itemdescr}
1546515465

1546615466
\begin{itemdecl}
15467-
template<auto f, class T>
15468-
function_ref(constant_arg_t<f>, T&&) -> function_ref<@\seebelow@>;
15467+
template<auto c, class F, class T>
15468+
function_ref(constant_wrapper<c, F>, T&&) -> function_ref<@\seebelow@>;
1546915469
\end{itemdecl}
1547015470

1547115471
\begin{itemdescr}
15472-
\pnum
15473-
Let \tcode{F} be \tcode{decltype(f)}.
15474-
1547515472
\pnum
1547615473
\constraints
1547715474
%FIXME: R and E should be defined outside of these constraints.

0 commit comments

Comments
 (0)