Skip to content

Commit 93dd84b

Browse files
committed
[time.duration] Removing redundant wording, constructors and destructors can't be coroutines (since P3533R2), therefore they are always constexpr-suitable and removed wording is not needed. Also removing redundant constexpr for constructor of duration which was enforcing constexpr-ness which is now default.
1 parent 781688e commit 93dd84b

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

source/time.tex

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1255,7 +1255,7 @@
12551255

12561256
public:
12571257
// \ref{time.duration.cons}, construct/copy/destroy
1258-
constexpr duration() = default;
1258+
duration() = default;
12591259
template<class Rep2>
12601260
constexpr explicit duration(const Rep2& r);
12611261
template<class Rep2, class Period2>
@@ -1304,12 +1304,6 @@
13041304
Members of \tcode{duration} do not throw exceptions other than
13051305
those thrown by the indicated operations on their representations.
13061306

1307-
\pnum
1308-
The defaulted copy constructor of \tcode{duration} shall be a
1309-
constexpr function if and only if the required initialization
1310-
of the member \tcode{rep_} for copy and move, respectively, would
1311-
be constexpr-suitable\iref{dcl.constexpr}.
1312-
13131307
\pnum
13141308
\begin{example}
13151309
\begin{codeblock}

0 commit comments

Comments
 (0)