Skip to content

Commit 367b947

Browse files
committed
New issue from Jiang An: "The Constraints: element in [time.clock.system.members] is probably wrong"
1 parent 032dcbd commit 367b947

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

xml/issue4288.xml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<?xml version='1.0' encoding='utf-8' standalone='no'?>
2+
<!DOCTYPE issue SYSTEM "lwg-issue.dtd">
3+
4+
<issue num="4288" status="New">
5+
<title>The <i>Constraints:</i> element in [time.clock.system.members] is probably wrong</title>
6+
<section>
7+
<sref ref="[time.clock.system.members]"/>
8+
</section>
9+
<submitter>Jiang An</submitter>
10+
<date>19 Jun 2025</date>
11+
<priority>99</priority>
12+
13+
<discussion>
14+
<p>
15+
Currently, the <i>Constraints:</i> element in <sref ref="[time.clock.system.members]"/> for the member typedef
16+
`system_clock::rep` imposes a requirement for the implementation, without establishing any condition for user
17+
code. Perhaps it's wrong to use a <i>Constraints:</i> element there.
18+
</p>
19+
</discussion>
20+
21+
<resolution>
22+
<p>
23+
This wording is relative to <paper num="N5008"/>.
24+
</p>
25+
26+
<ol>
27+
28+
<li><p>Modify <sref ref="[time.clock.system.members]"/> as indicated:</p>
29+
30+
<blockquote>
31+
<pre>
32+
using system_clock::rep = <i>unspecified</i>;
33+
</pre>
34+
<blockquote>
35+
<p>
36+
-1- <del><i>Constraints:</i></del><ins>The implementation shall ensure that</ins>
37+
<tt>system_clock::duration::min() &lt; system_clock::duration::zero()</tt> is <tt>true</tt>.
38+
[<i>Note 1</i>: This implies that `rep` is a signed type. &mdash; <i>end note</i>]
39+
</p>
40+
</blockquote>
41+
</blockquote>
42+
</li>
43+
44+
</ol>
45+
</resolution>
46+
47+
</issue>

0 commit comments

Comments
 (0)