Skip to content

Commit c772ea4

Browse files
committed
P2212R2 Relax Requirements for time_point::clock
1 parent cddc112 commit c772ea4

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

source/threads.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
the template argument shall return a value that is convertible to \tcode{bool}.
3333
If a template parameter is named \tcode{Clock},
3434
the corresponding template argument shall be a type \tcode{C}
35-
for which \tcode{is_clock_v<C>} is \tcode{true};
36-
otherwise the program is ill-formed.
35+
that meets the \oldconcept{Clock} requirements\iref{time.clock.req};
36+
the program is ill-formed if \tcode{is_clock_v<C>} is \tcode{false}.
3737

3838
\rSec2[thread.req.exception]{Exceptions}
3939

source/time.tex

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2212,11 +2212,6 @@
22122212
}
22132213
\end{codeblock}
22142214

2215-
\pnum
2216-
\tcode{Clock} shall either
2217-
meet the \oldconcept{Clock} requirements\iref{time.clock.req}
2218-
or be the type \tcode{local_t}.
2219-
22202215
\pnum
22212216
If \tcode{Duration} is not a specialization of \tcode{duration},
22222217
the program is ill-formed.

0 commit comments

Comments
 (0)