Skip to content

Commit d402a70

Browse files
committed
P3923R0: Re NB US 225-341 (C++26 CD)
Fixes NB US 225-341 (C++26 CD).
1 parent 50de083 commit d402a70

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

source/utilities.tex

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1662,9 +1662,9 @@
16621662
public:
16631663
// \ref{tuple.cnstr}, \tcode{tuple} construction
16641664
constexpr explicit(@\seebelow@) tuple();
1665-
constexpr explicit(@\seebelow@) tuple(const Types&...); // only if \tcode{sizeof...(Types) >= 1}
1665+
constexpr explicit(@\seebelow@) tuple(const Types&...) noexcept(@\seebelow@); // only if \tcode{sizeof...(Types) >= 1}
16661666
template<class... UTypes>
1667-
constexpr explicit(@\seebelow@) tuple(UTypes&&...); // only if \tcode{sizeof...(Types) >= 1}
1667+
constexpr explicit(@\seebelow@) tuple(UTypes&&...) noexcept(@\seebelow@); // only if \tcode{sizeof...(Types) >= 1}
16681668

16691669
tuple(const tuple&) = default;
16701670
tuple(tuple&&) = default;
@@ -1840,7 +1840,8 @@
18401840

18411841
\indexlibraryctor{tuple}%
18421842
\begin{itemdecl}
1843-
constexpr explicit(@\seebelow@) tuple(const Types&...);
1843+
constexpr explicit(@\seebelow@) tuple(const Types&...)
1844+
noexcept((is_nothrow_copy_constructible_v<Types> && ...));
18441845
\end{itemdecl}
18451846

18461847
\begin{itemdescr}
@@ -1864,7 +1865,8 @@
18641865

18651866
\indexlibraryctor{tuple}%
18661867
\begin{itemdecl}
1867-
template<class... UTypes> constexpr explicit(@\seebelow@) tuple(UTypes&&... u);
1868+
template<class... UTypes> constexpr explicit(@\seebelow@) tuple(UTypes&&... u)
1869+
noexcept((is_nothrow_constructible_v<Types, UTypes> && ...));
18681870
\end{itemdecl}
18691871

18701872
\begin{itemdescr}

0 commit comments

Comments
 (0)