Skip to content

Commit 140404f

Browse files
authored
Merge 2021-06 LWG Motion 11
P1951R1 Default Arguments for pair's Forwarding Constructor
2 parents b686c6e + 2a51da8 commit 140404f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/utilities.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@
673673
pair(pair&&) = default;
674674
constexpr explicit(@\seebelow@) pair();
675675
constexpr explicit(@\seebelow@) pair(const T1& x, const T2& y);
676-
template<class U1, class U2>
676+
template<class U1 = T1, class U2 = T2>
677677
constexpr explicit(@\seebelow@) pair(U1&& x, U2&& y);
678678
template<class U1, class U2>
679679
constexpr explicit(@\seebelow@) pair(const pair<U1, U2>& p);
@@ -778,7 +778,7 @@
778778

779779
\indexlibraryctor{pair}%
780780
\begin{itemdecl}
781-
template<class U1, class U2> constexpr explicit(@\seebelow@) pair(U1&& x, U2&& y);
781+
template<class U1 = T1, class U2 = T2> constexpr explicit(@\seebelow@) pair(U1&& x, U2&& y);
782782
\end{itemdecl}
783783

784784
\begin{itemdescr}

0 commit comments

Comments
 (0)