Skip to content

Commit a5259c2

Browse files
author
github-actions
committed
Automatic update from GitHub Actions workflow
1 parent 1d7e85c commit a5259c2

25 files changed

+407
-44
lines changed

issue4134.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ <h3 id="4134"><a href="lwg-defects.html#4134">4134</a>. Issue with Philox algori
6767
<b>Submitter:</b> Ilya A. Burylov <b>Opened:</b> 2024-08-06 <b>Last modified:</b> 2024-11-28</p>
6868
<p><b>Priority: </b>1
6969
</p>
70+
<p><b>View other</b> <a href="lwg-index-open.html#rand.eng.philox">active issues</a> in [rand.eng.philox].</p>
7071
<p><b>View all other</b> <a href="lwg-index.html#rand.eng.philox">issues</a> in [rand.eng.philox].</p>
7172
<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
7273
<p><b>Discussion:</b></p>

issue4153.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ <h3 id="4153"><a href="lwg-defects.html#4153">4153</a>. Fix extra "-1" for <code
6767
<b>Submitter:</b> Ruslan Arutyunyan <b>Opened:</b> 2024-09-18 <b>Last modified:</b> 2024-11-28</p>
6868
<p><b>Priority: </b>Not Prioritized
6969
</p>
70+
<p><b>View other</b> <a href="lwg-index-open.html#rand.eng.philox">active issues</a> in [rand.eng.philox].</p>
7071
<p><b>View all other</b> <a href="lwg-index.html#rand.eng.philox">issues</a> in [rand.eng.philox].</p>
7172
<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
7273
<p><b>Discussion:</b></p>

issue4212.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ <h3 id="4212"><a href="lwg-active.html#4212">4212</a>. Make the round states in
6767
<b>Submitter:</b> Thomas Köppe <b>Opened:</b> 2025-02-12 <b>Last modified:</b> 2025-02-24</p>
6868
<p><b>Priority: </b>Not Prioritized
6969
</p>
70+
<p><b>View other</b> <a href="lwg-index-open.html#rand.eng.philox">active issues</a> in [rand.eng.philox].</p>
7071
<p><b>View all other</b> <a href="lwg-index.html#rand.eng.philox">issues</a> in [rand.eng.philox].</p>
7172
<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
7273
<p><b>Discussion:</b></p>

issue4224.html

Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Issue 4224: Philox engines should be freestanding</title>
6+
<meta property="og:title" content="Issue 4224: Philox engines should be freestanding">
7+
<meta property="og:description" content="C++ library issue. Status: New">
8+
<meta property="og:url" content="https://cplusplus.github.io/LWG/issue4224.html">
9+
<meta property="og:type" content="website">
10+
<meta property="og:image" content="http://cplusplus.github.io/LWG/images/cpp_logo.png">
11+
<meta property="og:image:alt" content="C++ logo">
12+
<style>
13+
p {text-align:justify}
14+
li {text-align:justify}
15+
pre code.backtick::before { content: "`" }
16+
pre code.backtick::after { content: "`" }
17+
blockquote.note
18+
{
19+
background-color:#E0E0E0;
20+
padding-left: 15px;
21+
padding-right: 15px;
22+
padding-top: 1px;
23+
padding-bottom: 1px;
24+
}
25+
ins {background-color:#A0FFA0}
26+
del {background-color:#FFA0A0}
27+
table.issues-index { border: 1px solid; border-collapse: collapse; }
28+
table.issues-index th { text-align: center; padding: 4px; border: 1px solid; }
29+
table.issues-index td { padding: 4px; border: 1px solid; }
30+
table.issues-index td:nth-child(1) { text-align: right; }
31+
table.issues-index td:nth-child(2) { text-align: left; }
32+
table.issues-index td:nth-child(3) { text-align: left; }
33+
table.issues-index td:nth-child(4) { text-align: left; }
34+
table.issues-index td:nth-child(5) { text-align: center; }
35+
table.issues-index td:nth-child(6) { text-align: center; }
36+
table.issues-index td:nth-child(7) { text-align: left; }
37+
table.issues-index td:nth-child(5) span.no-pr { color: red; }
38+
@media (prefers-color-scheme: dark) {
39+
html {
40+
color: #ddd;
41+
background-color: black;
42+
}
43+
ins {
44+
background-color: #225522
45+
}
46+
del {
47+
background-color: #662222
48+
}
49+
a {
50+
color: #6af
51+
}
52+
a:visited {
53+
color: #6af
54+
}
55+
blockquote.note
56+
{
57+
background-color: rgba(255, 255, 255, .10)
58+
}
59+
}
60+
</style>
61+
</head>
62+
<body>
63+
<hr>
64+
<p><em>This page is a snapshot from the LWG issues list, see the <a href="lwg-active.html">Library Active Issues List</a> for more information and the meaning of <a href="lwg-active.html#New">New</a> status.</em></p>
65+
<h3 id="4224"><a href="lwg-active.html#4224">4224</a>. Philox engines should be freestanding</h3>
66+
<p><b>Section:</b> 29.5.4.5 <a href="https://wg21.link/rand.eng.philox">[rand.eng.philox]</a> <b>Status:</b> <a href="lwg-active.html#New">New</a>
67+
<b>Submitter:</b> Jiang An <b>Opened:</b> 2025-03-15 <b>Last modified:</b> 2025-03-15</p>
68+
<p><b>Priority: </b>Not Prioritized
69+
</p>
70+
<p><b>View other</b> <a href="lwg-index-open.html#rand.eng.philox">active issues</a> in [rand.eng.philox].</p>
71+
<p><b>View all other</b> <a href="lwg-index.html#rand.eng.philox">issues</a> in [rand.eng.philox].</p>
72+
<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
73+
<p><b>Discussion:</b></p>
74+
<p>
75+
Philox engines don't seem to require floating-point operations or support from the operating system,
76+
so they are probably suitable for freestanding. However, as <a href="https://wg21.link/P2976R1" title=" Freestanding Library: algorithm, numeric, and random">P2976R1</a> was finished before
77+
the adoption of <a href="https://wg21.link/P2075R6" title=" Philox as an extension of the C++ RNG engines">P2075R6</a>, these engines are not made freestanding yet.
78+
</p>
79+
80+
81+
<p id="res-4224"><b>Proposed resolution:</b></p>
82+
<p>
83+
This wording is relative to <a href="https://wg21.link/N5001">N5001</a>.
84+
</p>
85+
86+
<ol>
87+
88+
<li><p>Modify 29.5.2 <a href="https://wg21.link/rand.synopsis">[rand.synopsis]</a>, header <code>&lt;random&gt;</code> synopsis, as indicated:</p>
89+
90+
<blockquote>
91+
<pre>
92+
[&hellip;]
93+
// <i>29.5.4.5 <a href="https://wg21.link/rand.eng.philox">[rand.eng.philox]</a>, class template philox_engine</i>
94+
template&lt;class UIntType, size_t w, size_t n, size_t r, UIntType... consts&gt;
95+
class philox_engine; <ins>// <i>partially freestanding</i></ins>
96+
97+
[&hellip;]
98+
using philox4x32 = <i>see below</i>; <ins>// <i>freestanding</i></ins>
99+
using philox4x64 = <i>see below</i>; <ins>// <i>freestanding</i></ins>
100+
[&hellip;]
101+
</pre>
102+
</blockquote>
103+
</li>
104+
105+
<li><p>Modify 29.5.4.5 <a href="https://wg21.link/rand.eng.philox">[rand.eng.philox]</a>, class template <code class='backtick'>philox_engine</code> synopsis, as indicated:</p>
106+
107+
<blockquote>
108+
<pre>
109+
namespace std {
110+
template&lt;class UIntType, size_t w, size_t n, size_t r, UIntType... consts&gt;
111+
class philox_engine {
112+
[&hellip;]
113+
// <i>inserters and extractors</i>
114+
template&lt;class charT, class traits&gt;
115+
friend basic_ostream&lt;charT, traits&gt;&amp;
116+
operator&lt;&lt;(basic_ostream&lt;charT, traits&gt;&amp; os, const philox_engine&amp; x); <ins>// <i>hosted</i></ins>
117+
template&lt;class charT, class traits&gt;
118+
friend basic_istream&lt;charT, traits&gt;&amp;
119+
operator&gt;&gt;(basic_istream&lt;charT, traits&gt;&amp; is, philox_engine&amp; x); <ins>// <i>hosted</i></ins>
120+
};
121+
}
122+
</pre>
123+
</blockquote>
124+
</li>
125+
</ol>
126+
127+
128+
129+
130+
131+
</body>
132+
</html>

0 commit comments

Comments
 (0)