1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
3 <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
6 <title>C++ Standard Library Active Issues List</title>
7 <style type="text/css">
9 li {text-align:justify}
12 background-color:#E0E0E0;
18 ins {background-color:#A0FFA0}
19 del {background-color:#FFA0A0}
24 <td align="left">Doc. no.</td>
25 <td align="left">N3011=09-0201</td>
28 <td align="left">Date:</td>
29 <td align="left">2009-11-08</td>
32 <td align="left">Project:</td>
33 <td align="left">Programming Language C++</td>
36 <td align="left">Reply to:</td>
37 <td align="left">Howard Hinnant <<a href="mailto:howard.hinnant@gmail.com">howard.hinnant@gmail.com</a>></td>
40 <h1>C++ Standard Library Active Issues List (Revision R68)</h1>
42 <p>Reference ISO/IEC IS 14882:2003(E)</p>
45 <li><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-toc.html">Table of Contents</a> for all library issues.</li>
46 <li><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html">Index by Section</a> for all library issues.</li>
47 <li><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html">Index by Status</a> for all library issues.</li>
48 <li><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html">Library Defect Reports List</a></li>
49 <li><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html">Library Closed Issues List</a></li>
51 <p>The purpose of this document is to record the status of issues
52 which have come before the Library Working Group (LWG) of the ANSI
53 (J16) and ISO (WG21) C++ Standards Committee. Issues represent
54 potential defects in the ISO/IEC IS 14882:2003(E) document.
57 <p>This document contains only library issues which are actively being
58 considered by the Library Working Group, i.e., issues which have a
59 status of <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>,
60 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>, or <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Review">Review</a>. See
61 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html">Library Defect Reports List</a> for issues considered defects and
62 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html">Library Closed Issues List</a> for issues considered closed.</p>
64 <p>The issues in these lists are not necessarily formal ISO Defect
65 Reports (DR's). While some issues will eventually be elevated to
66 official Defect Report status, other issues will be disposed of in
67 other ways. See <a href="#Status">Issue Status</a>.</p>
69 <p>Prior to Revision 14, library issues lists existed in two slightly
70 different versions; a Committee Version and a Public
71 Version. Beginning with Revision 14 the two versions were combined
72 into a single version.</p>
74 <p>This document includes <i>[bracketed italicized notes]</i> as a
75 reminder to the LWG of current progress on issues. Such notes are
76 strictly unofficial and should be read with caution as they may be
77 incomplete or incorrect. Be aware that LWG support for a particular
78 resolution can quickly change if new viewpoints or killer examples are
79 presented in subsequent discussions.</p>
81 <p>For the most current official version of this document see
82 <a href="http://www.open-std.org/jtc1/sc22/wg21/">http://www.open-std.org/jtc1/sc22/wg21/</a>.
83 Requests for further information about this document should include
84 the document number above, reference ISO/IEC 14882:2003(E), and be
85 submitted to Information Technology Industry Council (ITI), 1250 Eye
86 Street NW, Washington, DC 20005.</p>
88 <p>Public information as to how to obtain a copy of the C++ Standard,
89 join the standards committee, submit an issue, or comment on an issue
90 can be found in the comp.std.c++ FAQ.
93 <p><a name="submit_issue"></a><b>How to submit an issue</b></p>
96 <a name="submit_issue_A"></a><li>
97 Mail your issue to the author of this list.
99 <a name="submit_issue_B"></a><li>
100 Specify a short descriptive title. If you fail to do so, the subject line of your
101 mail will be used as the issue title.
103 <a name="submit_issue_C"></a><li>
104 If the "From" on your email is not the name you wish to appear as issue submitter,
105 then specify issue submitter.
107 <a name="submit_issue_D"></a><li>
108 Provide a brief discussion of the problem you wish to correct. Refer to the latest
109 working draft or standard using [section.tag] and paragraph numbers where appropriate.
111 <a name="submit_issue_E"></a><li>
112 Provide proposed wording. This should indicate exactly how you want the standard
113 to be changed. General solution statements belong in the discussion area. This
114 area contains very clear and specific directions on how to modify the current
115 draft. If you are not sure how to word a solution, you may omit this part.
116 But your chances of a successful issue greatly increase if you attempt wording.
118 <a name="submit_issue_F"></a><li>
119 It is not necessary for you to use html markup. However, if you want to, you can
120 <ins><ins>insert text like this</ins></ins> and <del><del>delete text like
121 this</del></del>. The only strict requirement is to communicate clearly to
122 the list maintainer exactly how you want your issue to look.
124 <a name="submit_issue_G"></a><li>
125 It is not necessary for you to specify other html font/formatting
126 mark-up, but if you do the list maintainer will attempt to respect your
127 formatting wishes (as described by html markup, or other common idioms).
129 <a name="submit_issue_H"></a><li>
130 It is not necessary for you to specify open date or last modified date (the date
131 of your mail will be used).
133 <a name="submit_issue_I"></a><li>
134 It is not necessary for you to cross reference other issues, but you can if you
135 like. You do not need to form the hyperlinks when you do, the list maintainer will
138 <a name="submit_issue_J"></a><li>
139 One issue per email is best.
141 <a name="submit_issue_K"></a><li>
142 Between the time you submit the issue, and the next mailing deadline
143 (date at the top of the Revision History), you <em>own</em> this issue.
144 You control the content, the stuff that is right, the stuff that is
145 wrong, the format, the misspellings, etc. You can even make the issue
146 disappear if you want. Just let the list maintainer know how you want
147 it to look, and he will try his best to accommodate you. After the
148 issue appears in an official mailing, you no longer enjoy exclusive
154 <h2>Revision History</h2>
157 2009-11-06 post-Santa Cruz mailing.
159 <li><b>Summary:</b><ul>
160 <li>205 open issues, down by 77.</li>
161 <li>1055 closed issues, up by 120.</li>
162 <li>1260 issues total, up by 43.</li>
164 <li><b>Details:</b><ul>
165 <li>Added the following Dup issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1230">1230</a>.</li>
166 <li>Added the following NAD issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1229">1229</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1236">1236</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1243">1243</a>.</li>
167 <li>Added the following NAD Editorial issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1232">1232</a>.</li>
168 <li>Added the following NAD Future issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1235">1235</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1242">1242</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1248">1248</a>.</li>
169 <li>Added the following New issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1218">1218</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1219">1219</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1221">1221</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1222">1222</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1223">1223</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1224">1224</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1225">1225</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1234">1234</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1240">1240</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1244">1244</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1245">1245</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1246">1246</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1249">1249</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1250">1250</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1251">1251</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1252">1252</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1253">1253</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1254">1254</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1255">1255</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1256">1256</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1257">1257</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1258">1258</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1259">1259</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1260">1260</a>.</li>
170 <li>Added the following Open issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1228">1228</a>.</li>
171 <li>Added the following Ready issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1227">1227</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1237">1237</a>.</li>
172 <li>Added the following Review issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1247">1247</a>.</li>
173 <li>Added the following Tentatively NAD Editorial issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1233">1233</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1239">1239</a>.</li>
174 <li>Added the following Tentatively NAD Future issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1238">1238</a>.</li>
175 <li>Added the following Tentatively Ready issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1220">1220</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1226">1226</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1231">1231</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1241">1241</a>.</li>
176 <li>Changed the following issues from New to NAD: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1132">1132</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1148">1148</a>.</li>
177 <li>Changed the following issues from Open to NAD: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#96">96</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#458">458</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#463">463</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#916">916</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#917">917</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#919">919</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#955">955</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#977">977</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1009">1009</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1020">1020</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1035">1035</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1042">1042</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1051">1051</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1064">1064</a>.</li>
178 <li>Changed the following issues from Review to NAD: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#668">668</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#930">930</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1091">1091</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1102">1102</a>.</li>
179 <li>Changed the following issues from Tentatively NAD to NAD: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#588">588</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#617">617</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#971">971</a>.</li>
180 <li>Changed the following issues from Tentatively NAD Future to NAD: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1062">1062</a>.</li>
181 <li>Changed the following issues from NAD Concepts to NAD Editorial: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1143">1143</a>.</li>
182 <li>Changed the following issues from New to NAD Editorial: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1116">1116</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1117">1117</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1122">1122</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1129">1129</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1145">1145</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1146">1146</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1147">1147</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1155">1155</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1166">1166</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1172">1172</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1174">1174</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1179">1179</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1195">1195</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1196">1196</a>.</li>
183 <li>Changed the following issues from Open to NAD Editorial: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#431">431</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#580">580</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#635">635</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#719">719</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#823">823</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#827">827</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#879">879</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#880">880</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#908">908</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#923">923</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#924">924</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#926">926</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#944">944</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#947">947</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#958">958</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1046">1046</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1048">1048</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1054">1054</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1055">1055</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1075">1075</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1088">1088</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1160">1160</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1161">1161</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1162">1162</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1163">1163</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1165">1165</a>.</li>
184 <li>Changed the following issues from Review to NAD Editorial: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#828">828</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#897">897</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#976">976</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1043">1043</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1047">1047</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1049">1049</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1050">1050</a>.</li>
185 <li>Changed the following issues from New to NAD Future: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1120">1120</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1150">1150</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1184">1184</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1203">1203</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1217">1217</a>.</li>
186 <li>Changed the following issues from Open to NAD Future: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#484">484</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#532">532</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#851">851</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#933">933</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#935">935</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#936">936</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#961">961</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1041">1041</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1053">1053</a>.</li>
187 <li>Changed the following issues from Tentatively NAD Future to NAD Future: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1031">1031</a>.</li>
188 <li>Changed the following issues from New to Open: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1118">1118</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1119">1119</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1151">1151</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1153">1153</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1156">1156</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1171">1171</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1173">1173</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1183">1183</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1191">1191</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1211">1211</a>.</li>
189 <li>Changed the following issues from Ready to Open: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#430">430</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#834">834</a>.</li>
190 <li>Changed the following issues from Review to Open: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#397">397</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#408">408</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#835">835</a>.</li>
191 <li>Changed the following issues from Tentatively NAD to Open: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#625">625</a>.</li>
192 <li>Changed the following issues from New to Ready: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1123">1123</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1134">1134</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1135">1135</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1136">1136</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1144">1144</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1177">1177</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1194">1194</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1204">1204</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1216">1216</a>.</li>
193 <li>Changed the following issues from Open to Ready: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#296">296</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#471">471</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#485">485</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#539">539</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#816">816</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#860">860</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#865">865</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#872">872</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#920">920</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#932">932</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#939">939</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#940">940</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#960">960</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#963">963</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#974">974</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#978">978</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1011">1011</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1030">1030</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1079">1079</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1098">1098</a>.</li>
194 <li>Changed the following issues from Review to Ready: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#473">473</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#671">671</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#836">836</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#854">854</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#868">868</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#871">871</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#889">889</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#893">893</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#921">921</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#950">950</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#954">954</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#957">957</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#962">962</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#967">967</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#968">968</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#983">983</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1052">1052</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1094">1094</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1095">1095</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1097">1097</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1100">1100</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1104">1104</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1157">1157</a>.</li>
195 <li>Changed the following issues from New to Review: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1130">1130</a>.</li>
196 <li>Changed the following issues from Open to Review: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#556">556</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#631">631</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#676">676</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#727">727</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#929">929</a>.</li>
197 <li>Changed the following issues from Open to Tentatively NAD: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1056">1056</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1099">1099</a>.</li>
198 <li>Changed the following issues from New to Tentatively NAD Concepts: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1186">1186</a>.</li>
199 <li>Changed the following issues from New to Tentatively NAD Editorial: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1115">1115</a>.</li>
200 <li>Changed the following issues from New to Tentatively NAD Future: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1121">1121</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1201">1201</a>.</li>
201 <li>Changed the following issues from Open to Tentatively NAD Future: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1112">1112</a>.</li>
202 <li>Changed the following issues from New to Tentatively Ready: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1126">1126</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1138">1138</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1152">1152</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1158">1158</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1189">1189</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1192">1192</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1208">1208</a>.</li>
203 <li>Changed the following issues from Open to Tentatively Ready: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#987">987</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#999">999</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1071">1071</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1090">1090</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1108">1108</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1113">1113</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1114">1114</a>.</li>
204 <li>Changed the following issues from Ready to WP: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#149">149</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#419">419</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#498">498</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#564">564</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#565">565</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#630">630</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#659">659</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#696">696</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#711">711</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#716">716</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#723">723</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#788">788</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#822">822</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#838">838</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#847">847</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#857">857</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#859">859</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#876">876</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#881">881</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#883">883</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#886">886</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#934">934</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1004">1004</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1178">1178</a>.</li>
205 <li>Changed the following issues from Tentatively Ready to WP: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1012">1012</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1019">1019</a>.</li>
210 2009-09-25 pre-Santa Cruz mailing.
212 <li><b>Summary:</b><ul>
213 <li>282 open issues, up by 32.</li>
214 <li>935 closed issues, down by 1.</li>
215 <li>1217 issues total, up by 31.</li>
217 <li><b>Details:</b><ul>
218 <li>Added the following New issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1187">1187</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1188">1188</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1189">1189</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1190">1190</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1191">1191</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1192">1192</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1193">1193</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1194">1194</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1195">1195</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1196">1196</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1197">1197</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1198">1198</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1199">1199</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1200">1200</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1201">1201</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1202">1202</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1203">1203</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1204">1204</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1205">1205</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1206">1206</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1207">1207</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1208">1208</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1209">1209</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1210">1210</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1211">1211</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1212">1212</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1213">1213</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1214">1214</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1215">1215</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1216">1216</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1217">1217</a>.</li>
219 <li>Changed the following issues from NAD to Open: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#296">296</a>.</li>
220 <li>Changed the following issues from WP to Pending WP: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#970">970</a>.</li>
221 <li>Changed the following issues from Open to Review: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#976">976</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1052">1052</a>.</li>
222 <li>Changed the following issues from Ready to Review: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#780">780</a>.</li>
227 2009-07-31 post-Frankfurt mailing.
229 <li><b>Summary:</b><ul>
230 <li>250 open issues, down by 128.</li>
231 <li>936 closed issues, up by 171.</li>
232 <li>1186 issues total, up by 43.</li>
234 <li><b>Details:</b><ul>
235 <li>Added the following NAD issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1164">1164</a>.</li>
236 <li>Added the following NAD Concepts issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1149">1149</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1167">1167</a>.</li>
237 <li>Added the following NAD Editorial issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1168">1168</a>.</li>
238 <li>Added the following New issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1144">1144</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1145">1145</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1146">1146</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1147">1147</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1148">1148</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1150">1150</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1151">1151</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1152">1152</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1153">1153</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1154">1154</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1155">1155</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1156">1156</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1158">1158</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1159">1159</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1166">1166</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1169">1169</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1170">1170</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1171">1171</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1172">1172</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1173">1173</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1174">1174</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1175">1175</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1176">1176</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1177">1177</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1179">1179</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1180">1180</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1181">1181</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1182">1182</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1183">1183</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1184">1184</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1185">1185</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1186">1186</a>.</li>
239 <li>Added the following Open issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1160">1160</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1161">1161</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1162">1162</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1163">1163</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1165">1165</a>.</li>
240 <li>Added the following Ready issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1178">1178</a>.</li>
241 <li>Added the following Review issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1157">1157</a>.</li>
242 <li>Changed the following issues from Open to Dup: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#750">750</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#895">895</a>.</li>
243 <li>Changed the following issues from Open to NAD: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#111">111</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#128">128</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#138">138</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#190">190</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#219">219</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#290">290</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#309">309</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#342">342</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#343">343</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#382">382</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#394">394</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#398">398</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#417">417</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#418">418</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#421">421</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#459">459</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#466">466</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#492">492</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#502">502</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#503">503</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#546">546</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#573">573</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#582">582</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#585">585</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#597">597</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#606">606</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#614">614</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#632">632</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#721">721</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#747">747</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#751">751</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#833">833</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#941">941</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#992">992</a>.</li>
244 <li>Changed the following issues from Review to NAD: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1003">1003</a>.</li>
245 <li>Changed the following issues from Tentatively NAD to NAD: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#568">568</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#644">644</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#667">667</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#669">669</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#701">701</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#702">702</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#785">785</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#863">863</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#901">901</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#903">903</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#946">946</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#988">988</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#995">995</a>.</li>
246 <li>Changed the following issues from Tentatively Ready to NAD: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1002">1002</a>.</li>
247 <li>Changed the following issues from New to NAD Concepts: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1124">1124</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1127">1127</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1128">1128</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1139">1139</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1140">1140</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1141">1141</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1142">1142</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1143">1143</a>.</li>
248 <li>Changed the following issues from Open to NAD Concepts: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#902">902</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#989">989</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1000">1000</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1007">1007</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1010">1010</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1015">1015</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1016">1016</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1017">1017</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1018">1018</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1026">1026</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1027">1027</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1028">1028</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1029">1029</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1032">1032</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1036">1036</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1057">1057</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1059">1059</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1072">1072</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1078">1078</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1081">1081</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1082">1082</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1083">1083</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1084">1084</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1085">1085</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1086">1086</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1092">1092</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1096">1096</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1105">1105</a>.</li>
249 <li>Changed the following issues from Review to NAD Concepts: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1001">1001</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1005">1005</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1080">1080</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1087">1087</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1111">1111</a>.</li>
250 <li>Changed the following issues from Tentatively NAD to NAD Concepts: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#912">912</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#918">918</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1074">1074</a>.</li>
251 <li>Changed the following issues from Tentatively NAD Editorial to NAD Concepts: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#927">927</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1109">1109</a>.</li>
252 <li>Changed the following issues from Tentatively Ready to NAD Concepts: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#906">906</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#913">913</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#914">914</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#928">928</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1024">1024</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1063">1063</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1067">1067</a>.</li>
253 <li>Changed the following issues from Open to NAD Editorial: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#718">718</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#873">873</a>.</li>
254 <li>Changed the following issues from Tentatively NAD Editorial to NAD Editorial: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#424">424</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#825">825</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#830">830</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#837">837</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#862">862</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#867">867</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#884">884</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#945">945</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#952">952</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#969">969</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#972">972</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#973">973</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#979">979</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1023">1023</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1058">1058</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1060">1060</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1061">1061</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1077">1077</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1101">1101</a>.</li>
255 <li>Changed the following issues from Tentatively Ready to NAD Editorial: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1013">1013</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1107">1107</a>.</li>
256 <li>Changed the following issues from Open to NAD Future: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#255">255</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#423">423</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#523">523</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#708">708</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#760">760</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#839">839</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#877">877</a>.</li>
257 <li>Changed the following issues from CD1 to Open: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#823">823</a>.</li>
258 <li>Changed the following issues from NAD Editorial to Open: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#299">299</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#484">484</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#532">532</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#556">556</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#594">594</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#631">631</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#676">676</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#704">704</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#724">724</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#742">742</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#811">811</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#870">870</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#872">872</a>.</li>
259 <li>Changed the following issues from Review to Open: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#879">879</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#919">919</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#929">929</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#939">939</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#987">987</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1009">1009</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1093">1093</a>.</li>
260 <li>Changed the following issues from Tentatively NAD to Open: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#458">458</a>.</li>
261 <li>Changed the following issues from Tentatively NAD Future to Open: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#96">96</a>.</li>
262 <li>Changed the following issues from Tentatively Ready to Open: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#910">910</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#915">915</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#932">932</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#940">940</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#974">974</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#976">976</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#999">999</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1011">1011</a>.</li>
263 <li>Changed the following issues from Open to Ready: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#149">149</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#419">419</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#430">430</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#498">498</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#564">564</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#565">565</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#630">630</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#659">659</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#696">696</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#711">711</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#716">716</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#723">723</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#788">788</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#834">834</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#838">838</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#847">847</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#857">857</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#859">859</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#876">876</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#881">881</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#883">883</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#886">886</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1004">1004</a>.</li>
264 <li>Changed the following issues from Review to Ready: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#780">780</a>.</li>
265 <li>Changed the following issues from Tentatively NAD to Ready: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#822">822</a>.</li>
266 <li>Changed the following issues from Tentatively Ready to Ready: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#934">934</a>.</li>
267 <li>Changed the following issues from NAD to Review: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#871">871</a>.</li>
268 <li>Changed the following issues from Open to Review: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#397">397</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#408">408</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#473">473</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#671">671</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#836">836</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#868">868</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#889">889</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#893">893</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#930">930</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#954">954</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#962">962</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#967">967</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#968">968</a>.</li>
269 <li>Changed the following issues from Tentatively NAD to Review: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#668">668</a>.</li>
270 <li>Changed the following issues from Tentatively Ready to Review: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#950">950</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1100">1100</a>.</li>
271 <li>Changed the following issues from Open to Tentatively NAD: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#588">588</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#617">617</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#625">625</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#971">971</a>.</li>
272 <li>Changed the following issues from Open to Tentatively NAD Future: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1031">1031</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1062">1062</a>.</li>
273 <li>Changed the following issues from Open to Tentatively Ready: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1012">1012</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1019">1019</a>.</li>
274 <li>Changed the following issues from Tentatively Ready to WP: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#688">688</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#765">765</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#810">810</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#814">814</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#853">853</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#869">869</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#878">878</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#888">888</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#890">890</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#898">898</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#899">899</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#904">904</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#907">907</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#909">909</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#922">922</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#925">925</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#931">931</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#938">938</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#943">943</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#948">948</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#949">949</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#965">965</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#970">970</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#975">975</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#981">981</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#982">982</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#984">984</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#986">986</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#990">990</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#991">991</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#993">993</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#994">994</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#997">997</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#998">998</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1006">1006</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1014">1014</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1021">1021</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1037">1037</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1038">1038</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1039">1039</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1040">1040</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1044">1044</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1045">1045</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1065">1065</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1066">1066</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1070">1070</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1073">1073</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1103">1103</a>.</li>
279 2009-06-19 pre-Frankfurt mailing.
281 <li><b>Summary:</b><ul>
282 <li>378 open issues, up by 32.</li>
283 <li>765 closed issues, up by 0.</li>
284 <li>1143 issues total, up by 32.</li>
286 <li><b>Details:</b><ul>
287 <li>Added the following New issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1115">1115</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1116">1116</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1117">1117</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1118">1118</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1119">1119</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1120">1120</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1121">1121</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1122">1122</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1123">1123</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1124">1124</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1125">1125</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1126">1126</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1127">1127</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1128">1128</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1129">1129</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1130">1130</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1131">1131</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1132">1132</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1133">1133</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1134">1134</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1135">1135</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1136">1136</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1137">1137</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1138">1138</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1139">1139</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1140">1140</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1141">1141</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1142">1142</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1143">1143</a>.</li>
288 <li>Added the following Open issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1112">1112</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1113">1113</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1114">1114</a>.</li>
289 <li>Changed the following issues from Pending NAD Editorial to NAD Editorial: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#937">937</a>.</li>
290 <li>Changed the following issues from New to Open: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#696">696</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#716">716</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#727">727</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#865">865</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#900">900</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#911">911</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#916">916</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#917">917</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#920">920</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#933">933</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#935">935</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#941">941</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#947">947</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#951">951</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#953">953</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#954">954</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#955">955</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#956">956</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#977">977</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#978">978</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#985">985</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#989">989</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#996">996</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1033">1033</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1054">1054</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1056">1056</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1057">1057</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1059">1059</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1062">1062</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1068">1068</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1069">1069</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1071">1071</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1072">1072</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1076">1076</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1090">1090</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1092">1092</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1096">1096</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1098">1098</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1099">1099</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1105">1105</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1106">1106</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1108">1108</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1110">1110</a>.</li>
291 <li>Changed the following issues from Review to Open: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#817">817</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#971">971</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#992">992</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1004">1004</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1010">1010</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1012">1012</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1015">1015</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1019">1019</a>.</li>
292 <li>Changed the following issues from New to Review: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#780">780</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#835">835</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#897">897</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#919">919</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#939">939</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#957">957</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#983">983</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1001">1001</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1080">1080</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1091">1091</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1093">1093</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1094">1094</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1095">1095</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1097">1097</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1102">1102</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1104">1104</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1111">1111</a>.</li>
293 <li>Changed the following issues from Open to Review: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#921">921</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#987">987</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1087">1087</a>.</li>
294 <li>Changed the following issues from New to Tentatively NAD: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#568">568</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#701">701</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#702">702</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#785">785</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#863">863</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#903">903</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#912">912</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#918">918</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#946">946</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#995">995</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1074">1074</a>.</li>
295 <li>Changed the following issues from Open to Tentatively NAD: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#458">458</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#644">644</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#667">667</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#668">668</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#669">669</a>.</li>
296 <li>Changed the following issues from Review to Tentatively NAD: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#901">901</a>.</li>
297 <li>Changed the following issues from Tentatively Ready to Tentatively NAD: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#822">822</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#988">988</a>.</li>
298 <li>Changed the following issues from New to Tentatively NAD Editorial: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#837">837</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#862">862</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#867">867</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#927">927</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#945">945</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#952">952</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#969">969</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#972">972</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#973">973</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#979">979</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1058">1058</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1060">1060</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1061">1061</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1077">1077</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1101">1101</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1109">1109</a>.</li>
299 <li>Changed the following issues from Open to Tentatively NAD Editorial: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#424">424</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#825">825</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#830">830</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#884">884</a>.</li>
300 <li>Changed the following issues from Review to Tentatively NAD Editorial: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1023">1023</a>.</li>
301 <li>Changed the following issues from Open to Tentatively NAD Future: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#96">96</a>.</li>
302 <li>Changed the following issues from New to Tentatively Ready: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#810">810</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#898">898</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#906">906</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#910">910</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#913">913</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#914">914</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#915">915</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#925">925</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#974">974</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#976">976</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#981">981</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#982">982</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#984">984</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#990">990</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#998">998</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#999">999</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1063">1063</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1067">1067</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1070">1070</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1073">1073</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1100">1100</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1103">1103</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1107">1107</a>.</li>
303 <li>Changed the following issues from Open to Tentatively Ready: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#688">688</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#814">814</a>.</li>
304 <li>Changed the following issues from Review to Tentatively Ready: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#899">899</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#907">907</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#909">909</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#934">934</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#938">938</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#940">940</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#943">943</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#950">950</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#965">965</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#970">970</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#975">975</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#986">986</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#991">991</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#993">993</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#994">994</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#997">997</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1002">1002</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1006">1006</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1011">1011</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1013">1013</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1014">1014</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1021">1021</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1024">1024</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1037">1037</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1038">1038</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1039">1039</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1040">1040</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1044">1044</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1045">1045</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1065">1065</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1066">1066</a>.</li>
309 2009-05-01 mid-term mailing.
311 <li><b>Summary:</b><ul>
312 <li>346 open issues, up by 19.</li>
313 <li>765 closed issues, up by 0.</li>
314 <li>1111 issues total, up by 19.</li>
316 <li><b>Details:</b><ul>
317 <li>Added the following New issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1093">1093</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1094">1094</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1095">1095</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1096">1096</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1097">1097</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1098">1098</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1099">1099</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1100">1100</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1101">1101</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1102">1102</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1103">1103</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1104">1104</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1105">1105</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1106">1106</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1107">1107</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1108">1108</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1109">1109</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1110">1110</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1111">1111</a>.</li>
318 <li>Changed the following issues from DR to CD1: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#130">130</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#386">386</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#406">406</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#409">409</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#413">413</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#434">434</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#438">438</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#444">444</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#445">445</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#455">455</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#457">457</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#460">460</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#469">469</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#533">533</a>.</li>
319 <li>Changed the following issues from Review to New: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1070">1070</a>.</li>
324 2009-03-20 post-Summit mailing.
326 <li><b>Summary:</b><ul>
327 <li>327 open issues, up by 96.</li>
328 <li>765 closed issues, up by 14.</li>
329 <li>1092 issues total, up by 110.</li>
331 <li><b>Details:</b><ul>
332 <li>Added the following NAD Editorial issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1022">1022</a>.</li>
333 <li>Added the following NAD Future issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1025">1025</a>.</li>
334 <li>Added the following New issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#983">983</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#984">984</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#985">985</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#989">989</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#990">990</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#995">995</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#996">996</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#998">998</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#999">999</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1001">1001</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1033">1033</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1054">1054</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1056">1056</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1057">1057</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1058">1058</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1059">1059</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1060">1060</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1061">1061</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1062">1062</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1063">1063</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1067">1067</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1068">1068</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1069">1069</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1071">1071</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1072">1072</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1073">1073</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1074">1074</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1076">1076</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1077">1077</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1080">1080</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1090">1090</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1091">1091</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1092">1092</a>.</li>
335 <li>Added the following Open issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#987">987</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1000">1000</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1007">1007</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1008">1008</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1016">1016</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1017">1017</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1018">1018</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1020">1020</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1026">1026</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1027">1027</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1028">1028</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1029">1029</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1030">1030</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1031">1031</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1032">1032</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1034">1034</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1035">1035</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1036">1036</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1041">1041</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1042">1042</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1046">1046</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1048">1048</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1051">1051</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1052">1052</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1053">1053</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1055">1055</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1064">1064</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1075">1075</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1078">1078</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1079">1079</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1081">1081</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1082">1082</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1083">1083</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1084">1084</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1085">1085</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1086">1086</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1087">1087</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1088">1088</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1089">1089</a>.</li>
336 <li>Added the following Review issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#986">986</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#991">991</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#992">992</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#993">993</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#994">994</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#997">997</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1002">1002</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1003">1003</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1004">1004</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1005">1005</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1006">1006</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1009">1009</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1010">1010</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1011">1011</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1012">1012</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1013">1013</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1014">1014</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1015">1015</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1019">1019</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1021">1021</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1023">1023</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1024">1024</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1037">1037</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1038">1038</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1039">1039</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1040">1040</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1043">1043</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1044">1044</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1045">1045</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1047">1047</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1049">1049</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1050">1050</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1065">1065</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1066">1066</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1070">1070</a>.</li>
337 <li>Added the following Tentatively Ready issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#988">988</a>.</li>
338 <li>Changed the following issues from New to Dup: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#905">905</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#942">942</a>.</li>
339 <li>Changed the following issues from New to NAD: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#980">980</a>.</li>
340 <li>Changed the following issues from New to NAD Editorial: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#874">874</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#875">875</a>.</li>
341 <li>Changed the following issues from Open to NAD Editorial: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#732">732</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#793">793</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#794">794</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#800">800</a>.</li>
342 <li>Changed the following issues from Pending NAD Editorial to NAD Editorial: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#683">683</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#892">892</a>.</li>
343 <li>Changed the following issues from Ready to NAD Editorial: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#803">803</a>.</li>
344 <li>Changed the following issues from NAD to Open: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#466">466</a>.</li>
345 <li>Changed the following issues from NAD Future to Open: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#111">111</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#138">138</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#149">149</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#219">219</a>.</li>
346 <li>Changed the following issues from New to Open: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#880">880</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#891">891</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#893">893</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#902">902</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#908">908</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#921">921</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#923">923</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#924">924</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#926">926</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#930">930</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#936">936</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#944">944</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#958">958</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#959">959</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#960">960</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#961">961</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#962">962</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#963">963</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#964">964</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#966">966</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#967">967</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#968">968</a>.</li>
347 <li>Changed the following issues from Ready to Open: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#788">788</a>.</li>
348 <li>Changed the following issues from New to Pending NAD Editorial: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#937">937</a>.</li>
349 <li>Changed the following issues from New to Review: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#879">879</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#899">899</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#901">901</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#907">907</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#909">909</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#929">929</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#934">934</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#938">938</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#940">940</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#943">943</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#950">950</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#965">965</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#970">970</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#971">971</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#975">975</a>.</li>
350 <li>Changed the following issues from Open to Review: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#817">817</a>.</li>
351 <li>Changed the following issues from New to Tentatively Ready: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#904">904</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#922">922</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#928">928</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#931">931</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#932">932</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#948">948</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#949">949</a>.</li>
352 <li>Changed the following issues from Open to Tentatively Ready: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#890">890</a>.</li>
353 <li>Changed the following issues from Review to Tentatively Ready: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#765">765</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#822">822</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#853">853</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#869">869</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#878">878</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#888">888</a>.</li>
354 <li>Changed the following issues from Ready to WP: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#752">752</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#753">753</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#758">758</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#821">821</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#866">866</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#894">894</a>.</li>
359 2009-02-06 pre-Summit mailing.
361 <li><b>Summary:</b><ul>
362 <li>231 open issues, up by 44.</li>
363 <li>751 closed issues, up by 0.</li>
364 <li>982 issues total, up by 44.</li>
366 <li><b>Details:</b><ul>
367 <li>Added the following New issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#939">939</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#940">940</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#941">941</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#942">942</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#943">943</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#944">944</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#945">945</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#946">946</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#947">947</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#948">948</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#949">949</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#950">950</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#951">951</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#952">952</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#953">953</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#954">954</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#955">955</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#956">956</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#957">957</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#958">958</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#959">959</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#960">960</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#961">961</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#962">962</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#963">963</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#964">964</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#965">965</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#966">966</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#967">967</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#968">968</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#969">969</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#970">970</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#971">971</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#972">972</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#973">973</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#974">974</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#975">975</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#976">976</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#977">977</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#978">978</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#979">979</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#980">980</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#981">981</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#982">982</a>.</li>
372 2008-12-05 mid-term mailing.
374 <li><b>Summary:</b><ul>
375 <li>187 open issues, up by 20.</li>
376 <li>751 closed issues, up by 0.</li>
377 <li>938 issues total, up by 20.</li>
379 <li><b>Details:</b><ul>
380 <li>Added the following New issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#919">919</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#920">920</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#921">921</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#922">922</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#923">923</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#924">924</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#925">925</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#926">926</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#927">927</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#928">928</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#929">929</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#930">930</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#931">931</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#932">932</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#933">933</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#934">934</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#935">935</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#936">936</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#937">937</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#938">938</a>.</li>
385 2008-10-03 post-San Francisco mailing.
387 <li><b>Summary:</b><ul>
388 <li>167 open issues, down by 25.</li>
389 <li>751 closed issues, up by 65.</li>
390 <li>918 issues total, up by 40.</li>
392 <li><b>Details:</b><ul>
393 <li>Added the following CD1 issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#882">882</a>.</li>
394 <li>Added the following New issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#879">879</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#880">880</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#891">891</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#893">893</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#897">897</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#898">898</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#899">899</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#900">900</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#901">901</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#902">902</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#903">903</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#904">904</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#905">905</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#906">906</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#907">907</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#908">908</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#909">909</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#910">910</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#911">911</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#912">912</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#913">913</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#914">914</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#915">915</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#916">916</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#917">917</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#918">918</a>.</li>
395 <li>Added the following Open issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#881">881</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#883">883</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#884">884</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#885">885</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#886">886</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#887">887</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#889">889</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#890">890</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#895">895</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#896">896</a>.</li>
396 <li>Added the following Pending NAD Editorial issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#892">892</a>.</li>
397 <li>Added the following Ready issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#894">894</a>.</li>
398 <li>Added the following Review issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#888">888</a>.</li>
399 <li>Changed the following issues from New to CD1: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#818">818</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#820">820</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#843">843</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#845">845</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#846">846</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#856">856</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#858">858</a>.</li>
400 <li>Changed the following issues from Ready to CD1: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#180">180</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#387">387</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#396">396</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#522">522</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#629">629</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#691">691</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#713">713</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#714">714</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#720">720</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#728">728</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#762">762</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#769">769</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#771">771</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#772">772</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#776">776</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#779">779</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#787">787</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#805">805</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#806">806</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#807">807</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#808">808</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#809">809</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#813">813</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#824">824</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#829">829</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#842">842</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#844">844</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#848">848</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#850">850</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#852">852</a>.</li>
401 <li>Changed the following issues from Review to CD1: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#23">23</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#675">675</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#692">692</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#698">698</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#709">709</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#734">734</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#804">804</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#823">823</a>.</li>
402 <li>Changed the following issues from WP to CD1: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#44">44</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#49">49</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#76">76</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#91">91</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#92">92</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#98">98</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#103">103</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#109">109</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#117">117</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#118">118</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#120">120</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#123">123</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#136">136</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#153">153</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#165">165</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#167">167</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#171">171</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#179">179</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#182">182</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#183">183</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#184">184</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#185">185</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#186">186</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#187">187</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#198">198</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#200">200</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#201">201</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#202">202</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#206">206</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#214">214</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#221">221</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#225">225</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#226">226</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#228">228</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#229">229</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#230">230</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#231">231</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#232">232</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#233">233</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#234">234</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#235">235</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#237">237</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#238">238</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#239">239</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#240">240</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#241">241</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#242">242</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#243">243</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#247">247</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#248">248</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#250">250</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#251">251</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#252">252</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#253">253</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#254">254</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#256">256</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#258">258</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#259">259</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#260">260</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#261">261</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#262">262</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#263">263</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#264">264</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#265">265</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#266">266</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#268">268</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#270">270</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#271">271</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#272">272</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#273">273</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#274">274</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#275">275</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#276">276</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#278">278</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#280">280</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#281">281</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#282">282</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#283">283</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#284">284</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#285">285</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#286">286</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#288">288</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#291">291</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#292">292</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#294">294</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#295">295</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#297">297</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#298">298</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#300">300</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#301">301</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#303">303</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#305">305</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#306">306</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#307">307</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#308">308</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#310">310</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#311">311</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#312">312</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#315">315</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#316">316</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#317">317</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#318">318</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#319">319</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#320">320</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#321">321</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#322">322</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#324">324</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#325">325</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#327">327</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#328">328</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#329">329</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#331">331</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#333">333</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#334">334</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#335">335</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#336">336</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#337">337</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#338">338</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#339">339</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#340">340</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#341">341</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#345">345</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#346">346</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#347">347</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#349">349</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#352">352</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#354">354</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#355">355</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#358">358</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#359">359</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#360">360</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#362">362</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#363">363</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#364">364</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#365">365</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#369">369</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#370">370</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#371">371</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#373">373</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#375">375</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#376">376</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#379">379</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#380">380</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#381">381</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#383">383</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#384">384</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#389">389</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#391">391</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#395">395</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#400">400</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#401">401</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#402">402</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#403">403</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#404">404</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#405">405</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#407">407</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#410">410</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#411">411</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#412">412</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#414">414</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#415">415</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#416">416</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#420">420</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#422">422</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#425">425</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#426">426</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#428">428</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#432">432</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#435">435</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#436">436</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#441">441</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#442">442</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#443">443</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#448">448</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#449">449</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#453">453</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#456">456</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#461">461</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#464">464</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#465">465</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#467">467</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#468">468</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#474">474</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#475">475</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#478">478</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#488">488</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#495">495</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#496">496</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#497">497</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#505">505</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#507">507</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#508">508</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#518">518</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#519">519</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#520">520</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#521">521</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#524">524</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#527">527</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#530">530</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#531">531</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#534">534</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#535">535</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#537">537</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#538">538</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#540">540</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#541">541</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#542">542</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#543">543</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#545">545</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#550">550</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#551">551</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#552">552</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#559">559</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#561">561</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#562">562</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#563">563</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#566">566</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#567">567</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#574">574</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#575">575</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#576">576</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#577">577</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#578">578</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#581">581</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#586">586</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#589">589</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#593">593</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#595">595</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#596">596</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#607">607</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#608">608</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#609">609</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#610">610</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#611">611</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#612">612</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#613">613</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#616">616</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#618">618</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#619">619</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#620">620</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#621">621</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#622">622</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#623">623</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#624">624</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#628">628</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#634">634</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#638">638</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#640">640</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#643">643</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#646">646</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#650">650</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#651">651</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#652">652</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#654">654</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#655">655</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#660">660</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#661">661</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#664">664</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#665">665</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#666">666</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#672">672</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#673">673</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#674">674</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#677">677</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#678">678</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#679">679</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#680">680</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#681">681</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#682">682</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#685">685</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#687">687</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#689">689</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#693">693</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#694">694</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#695">695</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#699">699</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#700">700</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#703">703</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#705">705</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#706">706</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#710">710</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#712">712</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#715">715</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#722">722</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#740">740</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#743">743</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#744">744</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#746">746</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#749">749</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#755">755</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#759">759</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#761">761</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#766">766</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#768">768</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#770">770</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#775">775</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#777">777</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#778">778</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#781">781</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#782">782</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#783">783</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#789">789</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#792">792</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#798">798</a>.</li>
403 <li>Changed the following issues from Open to Dup: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#670">670</a>.</li>
404 <li>Changed the following issues from New to NAD: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#849">849</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#855">855</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#871">871</a>.</li>
405 <li>Changed the following issues from Open to NAD: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#454">454</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#832">832</a>.</li>
406 <li>Changed the following issues from New to NAD Editorial: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#811">811</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#812">812</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#841">841</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#864">864</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#870">870</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#872">872</a>.</li>
407 <li>Changed the following issues from Open to NAD Editorial: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#299">299</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#484">484</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#556">556</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#631">631</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#676">676</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#704">704</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#724">724</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#742">742</a>.</li>
408 <li>Changed the following issues from Pending NAD Editorial to NAD Editorial: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#532">532</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#594">594</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#717">717</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#725">725</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#738">738</a>.</li>
409 <li>Changed the following issues from New to Open: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#721">721</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#751">751</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#814">814</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#816">816</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#817">817</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#819">819</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#827">827</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#836">836</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#838">838</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#847">847</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#857">857</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#859">859</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#860">860</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#861">861</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#868">868</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#873">873</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#876">876</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#877">877</a>.</li>
410 <li>Changed the following issues from Pending NAD Editorial to Open: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#424">424</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#625">625</a>.</li>
411 <li>Changed the following issues from Review to Open: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#851">851</a>.</li>
412 <li>Changed the following issues from New to Ready: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#788">788</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#821">821</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#866">866</a>.</li>
413 <li>Changed the following issues from Open to Ready: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#753">753</a>.</li>
414 <li>Changed the following issues from Review to Ready: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#752">752</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#758">758</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#803">803</a>.</li>
415 <li>Changed the following issues from New to Review: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#765">765</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#822">822</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#853">853</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#854">854</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#869">869</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#878">878</a>.</li>
416 <li>Changed the following issues from TC to TC1: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1">1</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#3">3</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#5">5</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#7">7</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#8">8</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#9">9</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#11">11</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#13">13</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#14">14</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#15">15</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#16">16</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#17">17</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#18">18</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#19">19</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#20">20</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#21">21</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#22">22</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#24">24</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#25">25</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#26">26</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#27">27</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#28">28</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#29">29</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#30">30</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#31">31</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#32">32</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#33">33</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#34">34</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#35">35</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#36">36</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#37">37</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#38">38</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#39">39</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#40">40</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#41">41</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#42">42</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#46">46</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#47">47</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#48">48</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#50">50</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#51">51</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#52">52</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#53">53</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#54">54</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#55">55</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#56">56</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#57">57</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#59">59</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#60">60</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#61">61</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#62">62</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#63">63</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#64">64</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#66">66</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#68">68</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#69">69</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#70">70</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#71">71</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#74">74</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#75">75</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#78">78</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#79">79</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#80">80</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#83">83</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#86">86</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#90">90</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#106">106</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#108">108</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#110">110</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#112">112</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#114">114</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#115">115</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#119">119</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#122">122</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#124">124</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#125">125</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#126">126</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#127">127</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#129">129</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#132">132</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#133">133</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#134">134</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#137">137</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#139">139</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#141">141</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#142">142</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#144">144</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#146">146</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#147">147</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#148">148</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#150">150</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#151">151</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#152">152</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#154">154</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#155">155</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#156">156</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#158">158</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#159">159</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#160">160</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#161">161</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#164">164</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#168">168</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#169">169</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#170">170</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#172">172</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#173">173</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#174">174</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#175">175</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#176">176</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#181">181</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#189">189</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#193">193</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#195">195</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#199">199</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#208">208</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#209">209</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#210">210</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#211">211</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#212">212</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#217">217</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#220">220</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#222">222</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#223">223</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#224">224</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#227">227</a>.</li>
421 2008-08-22 pre-San Francisco mailing.
423 <li><b>Summary:</b><ul>
424 <li>192 open issues, up by 9.</li>
425 <li>686 closed issues, up by 0.</li>
426 <li>878 issues total, up by 9.</li>
428 <li><b>Details:</b><ul>
429 <li>Added the following New issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#870">870</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#871">871</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#872">872</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#873">873</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#874">874</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#875">875</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#876">876</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#877">877</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#878">878</a>.</li>
434 2008-07-28 mid-term mailing.
436 <li><b>Summary:</b><ul>
437 <li>183 open issues, up by 12.</li>
438 <li>686 closed issues, down by 4.</li>
439 <li>869 issues total, up by 8.</li>
441 <li><b>Details:</b><ul>
442 <li>Added the following New issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#862">862</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#863">863</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#864">864</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#865">865</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#866">866</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#867">867</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#868">868</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#869">869</a>.</li>
443 <li>Changed the following issues from Pending NAD Editorial to NAD Editorial: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#393">393</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#557">557</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#592">592</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#754">754</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#757">757</a>.</li>
444 <li>Changed the following issues from Pending WP to Open: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#644">644</a>.</li>
445 <li>Changed the following issues from WP to Ready: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#387">387</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#629">629</a>.</li>
446 <li>Changed the following issues from Pending NAD Editorial to Review: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#709">709</a>.</li>
451 2008-06-27 post-Sophia Antipolis mailing.
453 <li><b>Summary:</b><ul>
454 <li>171 open issues, down by 20.</li>
455 <li>690 closed issues, up by 43.</li>
456 <li>861 issues total, up by 23.</li>
458 <li><b>Details:</b><ul>
459 <li>Added the following NAD issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#840">840</a>.</li>
460 <li>Added the following New issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#841">841</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#843">843</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#845">845</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#846">846</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#847">847</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#849">849</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#853">853</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#854">854</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#855">855</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#856">856</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#857">857</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#858">858</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#859">859</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#860">860</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#861">861</a>.</li>
461 <li>Added the following Open issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#839">839</a>.</li>
462 <li>Added the following Ready issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#842">842</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#844">844</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#848">848</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#850">850</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#852">852</a>.</li>
463 <li>Added the following Review issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#851">851</a>.</li>
464 <li>Changed the following issues from New to NAD: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#826">826</a>.</li>
465 <li>Changed the following issues from Open to NAD: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#570">570</a>.</li>
466 <li>Changed the following issues from New to NAD Editorial: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#786">786</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#831">831</a>.</li>
467 <li>Changed the following issues from Open to NAD Editorial: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#756">756</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#767">767</a>.</li>
468 <li>Changed the following issues from New to Open: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#723">723</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#726">726</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#794">794</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#815">815</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#825">825</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#830">830</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#833">833</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#834">834</a>.</li>
469 <li>Changed the following issues from Ready to Open: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#471">471</a>.</li>
470 <li>Changed the following issues from Review to Open: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#539">539</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#711">711</a>.</li>
471 <li>Changed the following issues from New to Ready: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#713">713</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#714">714</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#769">769</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#772">772</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#779">779</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#787">787</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#805">805</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#806">806</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#807">807</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#808">808</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#809">809</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#813">813</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#824">824</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#829">829</a>.</li>
472 <li>Changed the following issues from Open to Ready: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#180">180</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#396">396</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#522">522</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#720">720</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#762">762</a>.</li>
473 <li>Changed the following issues from Review to Ready: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#691">691</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#728">728</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#771">771</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#776">776</a>.</li>
474 <li>Changed the following issues from New to Review: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#692">692</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#698">698</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#752">752</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#804">804</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#823">823</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#828">828</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#832">832</a>.</li>
475 <li>Changed the following issues from Open to Review: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#23">23</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#675">675</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#734">734</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#803">803</a>.</li>
476 <li>Changed the following issues from Ready to Review: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#758">758</a>.</li>
477 <li>Changed the following issues from Ready to WP: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#387">387</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#518">518</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#550">550</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#574">574</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#595">595</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#596">596</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#612">612</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#618">618</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#629">629</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#638">638</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#672">672</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#673">673</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#685">685</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#710">710</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#715">715</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#722">722</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#740">740</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#743">743</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#744">744</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#746">746</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#749">749</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#755">755</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#759">759</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#761">761</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#766">766</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#768">768</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#770">770</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#775">775</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#777">777</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#778">778</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#781">781</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#782">782</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#783">783</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#789">789</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#792">792</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#798">798</a>.</li>
482 2008-05-16 pre-Sophia Antipolis mailing.
484 <li><b>Summary:</b><ul>
485 <li>191 open issues, up by 24.</li>
486 <li>647 closed issues, up by 1.</li>
487 <li>838 issues total, up by 25.</li>
489 <li><b>Details:</b><ul>
490 <li>Added the following New issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#814">814</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#815">815</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#816">816</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#817">817</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#818">818</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#819">819</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#820">820</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#821">821</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#822">822</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#823">823</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#824">824</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#825">825</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#826">826</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#827">827</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#828">828</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#829">829</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#830">830</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#831">831</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#832">832</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#833">833</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#834">834</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#835">835</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#836">836</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#837">837</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#838">838</a>.</li>
491 <li>Changed the following issues from New to NAD: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#802">802</a>.</li>
496 2008-03-14 post-Bellevue mailing.
498 <li><b>Summary:</b><ul>
499 <li>167 open issues, down by 39.</li>
500 <li>646 closed issues, up by 65.</li>
501 <li>813 issues total, up by 26.</li>
503 <li><b>Details:</b><ul>
504 <li>Added the following Dup issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#795">795</a>.</li>
505 <li>Added the following NAD issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#790">790</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#791">791</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#796">796</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#797">797</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#799">799</a>.</li>
506 <li>Added the following New issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#788">788</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#794">794</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#802">802</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#804">804</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#805">805</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#806">806</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#807">807</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#808">808</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#809">809</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#810">810</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#811">811</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#812">812</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#813">813</a>.</li>
507 <li>Added the following Open issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#793">793</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#800">800</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#801">801</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#803">803</a>.</li>
508 <li>Added the following Ready issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#789">789</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#792">792</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#798">798</a>.</li>
509 <li>Changed the following issues from NAD Future to Dup: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#116">116</a>.</li>
510 <li>Changed the following issues from NAD Future to NAD: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#188">188</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#323">323</a>.</li>
511 <li>Changed the following issues from New to NAD: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#729">729</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#730">730</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#731">731</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#733">733</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#735">735</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#736">736</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#737">737</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#739">739</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#741">741</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#745">745</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#748">748</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#763">763</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#764">764</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#773">773</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#784">784</a>.</li>
512 <li>Changed the following issues from Open to NAD: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#388">388</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#462">462</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#579">579</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#627">627</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#653">653</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#686">686</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#707">707</a>.</li>
513 <li>Changed the following issues from NAD Future to NAD Editorial: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#140">140</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#390">390</a>.</li>
514 <li>Changed the following issues from Open to NAD Editorial: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#529">529</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#626">626</a>.</li>
515 <li>Changed the following issues from Review to NAD Editorial: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#645">645</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#684">684</a>.</li>
516 <li>Changed the following issues from NAD Future to Open: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#128">128</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#180">180</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#190">190</a>.</li>
517 <li>Changed the following issues from New to Open: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#617">617</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#718">718</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#719">719</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#720">720</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#724">724</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#732">732</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#734">734</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#742">742</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#747">747</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#750">750</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#753">753</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#756">756</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#760">760</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#762">762</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#767">767</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#774">774</a>.</li>
518 <li>Changed the following issues from Ready to Open: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#675">675</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#676">676</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#688">688</a>.</li>
519 <li>Changed the following issues from New to Pending NAD Editorial: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#709">709</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#717">717</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#725">725</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#738">738</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#754">754</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#757">757</a>.</li>
520 <li>Changed the following issues from Open to Pending NAD Editorial: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#424">424</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#557">557</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#625">625</a>.</li>
521 <li>Changed the following issues from New to Ready: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#710">710</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#715">715</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#722">722</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#740">740</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#743">743</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#744">744</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#746">746</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#749">749</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#755">755</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#758">758</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#759">759</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#761">761</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#766">766</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#768">768</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#770">770</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#775">775</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#777">777</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#778">778</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#781">781</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#782">782</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#783">783</a>.</li>
522 <li>Changed the following issues from Open to Ready: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#387">387</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#471">471</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#550">550</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#612">612</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#629">629</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#673">673</a>.</li>
523 <li>Changed the following issues from Review to Ready: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#518">518</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#574">574</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#596">596</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#618">618</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#638">638</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#672">672</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#685">685</a>.</li>
524 <li>Changed the following issues from New to Review: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#711">711</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#728">728</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#771">771</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#776">776</a>.</li>
525 <li>Changed the following issues from Open to Review: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#539">539</a>.</li>
526 <li>Changed the following issues from Ready to WP: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#561">561</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#562">562</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#563">563</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#567">567</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#581">581</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#620">620</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#621">621</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#622">622</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#623">623</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#624">624</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#661">661</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#664">664</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#665">665</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#666">666</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#674">674</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#679">679</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#680">680</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#687">687</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#689">689</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#693">693</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#694">694</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#695">695</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#700">700</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#703">703</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#705">705</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#706">706</a>.</li>
527 <li>Changed the following issues from Tentatively Ready to WP: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#527">527</a>.</li>
532 2008-02-01 pre-Bellevue mailing.
534 <li><b>Summary:</b><ul>
535 <li>206 open issues, up by 23.</li>
536 <li>581 closed issues, up by 0.</li>
537 <li>787 issues total, up by 23.</li>
539 <li><b>Details:</b><ul>
540 <li>Added the following New issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#765">765</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#766">766</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#767">767</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#768">768</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#769">769</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#770">770</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#771">771</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#772">772</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#773">773</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#774">774</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#775">775</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#776">776</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#777">777</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#778">778</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#779">779</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#780">780</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#781">781</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#782">782</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#783">783</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#784">784</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#785">785</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#786">786</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#787">787</a>.</li>
541 <li>Changed the following issues from NAD Future to Dup: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#105">105</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#348">348</a>.</li>
542 <li>Changed the following issues from NAD Future to NAD Editorial: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#353">353</a>.</li>
543 <li>Changed the following issues from New to NAD Editorial: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#697">697</a>.</li>
544 <li>Changed the following issues from NAD Future to Open: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#388">388</a>.</li>
545 <li>Changed the following issues from Open to Tentatively Ready: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#527">527</a>.</li>
550 2007-12-09 mid-term mailing.
552 <li><b>Summary:</b><ul>
553 <li>183 open issues, up by 11.</li>
554 <li>581 closed issues, down by 1.</li>
555 <li>764 issues total, up by 10.</li>
557 <li><b>Details:</b><ul>
558 <li>Added the following New issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#755">755</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#756">756</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#757">757</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#758">758</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#759">759</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#760">760</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#761">761</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#762">762</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#763">763</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#764">764</a>.</li>
559 <li>Changed the following issues from NAD to Open: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#463">463</a>.</li>
560 <li>Changed the following issues from Pending WP to WP: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#607">607</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#608">608</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#654">654</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#655">655</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#677">677</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#682">682</a>.</li>
565 2007-10-19 post-Kona mailing.
567 <li><b>Summary:</b><ul>
568 <li>172 open issues, up by 4.</li>
569 <li>582 closed issues, up by 27.</li>
570 <li>754 issues total, up by 31.</li>
572 <li><b>Details:</b><ul>
573 <li>Added the following New issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#724">724</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#725">725</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#726">726</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#727">727</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#728">728</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#729">729</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#730">730</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#731">731</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#732">732</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#733">733</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#734">734</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#735">735</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#736">736</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#737">737</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#738">738</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#739">739</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#740">740</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#741">741</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#742">742</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#743">743</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#744">744</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#745">745</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#746">746</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#747">747</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#748">748</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#749">749</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#750">750</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#751">751</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#752">752</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#753">753</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#754">754</a>.</li>
574 <li>Changed the following issues from NAD Future to Dup: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#77">77</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#350">350</a>.</li>
575 <li>Changed the following issues from New to NAD: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#639">639</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#657">657</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#663">663</a>.</li>
576 <li>Changed the following issues from Open to NAD: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#548">548</a>.</li>
577 <li>Changed the following issues from New to Open: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#546">546</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#550">550</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#564">564</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#565">565</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#573">573</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#585">585</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#588">588</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#627">627</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#629">629</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#630">630</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#632">632</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#635">635</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#653">653</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#659">659</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#667">667</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#668">668</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#669">669</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#670">670</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#671">671</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#673">673</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#686">686</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#704">704</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#707">707</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#708">708</a>.</li>
578 <li>Changed the following issues from New to Pending NAD Editorial: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#393">393</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#592">592</a>.</li>
579 <li>Changed the following issues from New to Pending WP: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#607">607</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#608">608</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#654">654</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#655">655</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#677">677</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#682">682</a>.</li>
580 <li>Changed the following issues from New to Ready: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#561">561</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#562">562</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#563">563</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#567">567</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#581">581</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#595">595</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#620">620</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#621">621</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#622">622</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#623">623</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#624">624</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#661">661</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#664">664</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#665">665</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#666">666</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#674">674</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#675">675</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#676">676</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#679">679</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#687">687</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#688">688</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#689">689</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#693">693</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#694">694</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#695">695</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#700">700</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#703">703</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#705">705</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#706">706</a>.</li>
581 <li>Changed the following issues from Open to Ready: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#680">680</a>.</li>
582 <li>Changed the following issues from New to Review: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#574">574</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#596">596</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#618">618</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#638">638</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#645">645</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#672">672</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#684">684</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#685">685</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#691">691</a>.</li>
583 <li>Changed the following issues from New to WP: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#552">552</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#634">634</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#650">650</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#651">651</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#652">652</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#678">678</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#681">681</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#699">699</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#712">712</a>.</li>
584 <li>Changed the following issues from Open to WP: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#258">258</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#401">401</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#524">524</a>.</li>
585 <li>Changed the following issues from Ready to WP: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#488">488</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#577">577</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#660">660</a>.</li>
590 2007-09-09 pre-Kona mailing.
592 <li><b>Summary:</b><ul>
593 <li>168 open issues, up by 15.</li>
594 <li>555 closed issues, up by 0.</li>
595 <li>723 issues total, up by 15.</li>
597 <li><b>Details:</b><ul>
598 <li>Added the following New issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#709">709</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#710">710</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#711">711</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#712">712</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#713">713</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#714">714</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#715">715</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#716">716</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#717">717</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#718">718</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#719">719</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#720">720</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#721">721</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#722">722</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#723">723</a>.</li>
603 2007-08-05 post-Toronto mailing.
605 <li><b>Summary:</b><ul>
606 <li>153 open issues, down by 5.</li>
607 <li>555 closed issues, up by 17.</li>
608 <li>708 issues total, up by 12.</li>
610 <li><b>Details:</b><ul>
611 <li>Added the following New issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#697">697</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#698">698</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#699">699</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#700">700</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#701">701</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#702">702</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#703">703</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#704">704</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#705">705</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#706">706</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#707">707</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#708">708</a>.</li>
612 <li>Changed the following issues from New to NAD: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#583">583</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#584">584</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#662">662</a>.</li>
613 <li>Changed the following issues from Open to NAD: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#528">528</a>.</li>
614 <li>Changed the following issues from New to NAD Editorial: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#637">637</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#647">647</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#658">658</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#690">690</a>.</li>
615 <li>Changed the following issues from Open to NAD Editorial: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#525">525</a>.</li>
616 <li>Changed the following issues from Pending NAD Editorial to NAD Editorial: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#553">553</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#571">571</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#591">591</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#633">633</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#636">636</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#641">641</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#642">642</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#648">648</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#649">649</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#656">656</a>.</li>
617 <li>Changed the following issues from New to Open: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#579">579</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#631">631</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#680">680</a>.</li>
618 <li>Changed the following issues from Pending WP to Open: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#258">258</a>.</li>
619 <li>Changed the following issues from Ready to Pending WP: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#644">644</a>.</li>
620 <li>Changed the following issues from New to Ready: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#577">577</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#660">660</a>.</li>
621 <li>Changed the following issues from Open to Ready: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#488">488</a>.</li>
622 <li>Changed the following issues from Open to Review: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#518">518</a>.</li>
623 <li>Changed the following issues from Ready to TRDec: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#604">604</a>.</li>
624 <li>Changed the following issues from DR to WP: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#453">453</a>.</li>
625 <li>Changed the following issues from Ready to WP: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#531">531</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#551">551</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#566">566</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#628">628</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#640">640</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#643">643</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#646">646</a>.</li>
630 2007-06-23 pre-Toronto mailing.
632 <li><b>Summary:</b><ul>
633 <li>158 open issues, up by 13.</li>
634 <li>538 closed issues, up by 7.</li>
635 <li>696 issues total, up by 20.</li>
637 <li><b>Details:</b><ul>
638 <li>Added the following New issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#677">677</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#678">678</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#679">679</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#680">680</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#681">681</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#682">682</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#684">684</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#685">685</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#686">686</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#687">687</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#688">688</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#689">689</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#690">690</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#691">691</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#692">692</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#693">693</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#694">694</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#695">695</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#696">696</a>.</li>
639 <li>Added the following Pending NAD Editorial issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#683">683</a>.</li>
640 <li>Changed the following issues from New to NAD Editorial: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#587">587</a>.</li>
641 <li>Changed the following issues from Open to NAD Editorial: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#590">590</a>.</li>
642 <li>Changed the following issues from New to Pending NAD Editorial: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#636">636</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#642">642</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#648">648</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#649">649</a>.</li>
647 2007-05-06 post-Oxford mailing.
649 <li><b>Summary:</b><ul>
650 <li>145 open issues, down by 33.</li>
651 <li>531 closed issues, up by 53.</li>
652 <li>676 issues total, up by 20.</li>
654 <li><b>Details:</b><ul>
655 <li>Added the following New issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#657">657</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#658">658</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#659">659</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#660">660</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#661">661</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#662">662</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#663">663</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#664">664</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#665">665</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#666">666</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#667">667</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#668">668</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#669">669</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#670">670</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#671">671</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#672">672</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#673">673</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#674">674</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#675">675</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#676">676</a>.</li>
656 <li>Changed the following issues from Tentatively Ready to Dup: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#479">479</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#536">536</a>.</li>
657 <li>Changed the following issues from Tentatively Ready to NAD: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#385">385</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#463">463</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#466">466</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#470">470</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#515">515</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#526">526</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#547">547</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#560">560</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#572">572</a>.</li>
658 <li>Changed the following issues from NAD to NAD Editorial: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#351">351</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#357">357</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#368">368</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#499">499</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#504">504</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#512">512</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#513">513</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#514">514</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#516">516</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#544">544</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#549">549</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#555">555</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#558">558</a>.</li>
659 <li>Changed the following issues from Tentatively Ready to NAD Editorial: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#482">482</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#615">615</a>.</li>
660 <li>Changed the following issues from NAD_Future to NAD Future: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#77">77</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#105">105</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#111">111</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#116">116</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#128">128</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#138">138</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#140">140</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#149">149</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#180">180</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#188">188</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#190">190</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#219">219</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#323">323</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#348">348</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#350">350</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#353">353</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#388">388</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#390">390</a>.</li>
661 <li>Changed the following issues from Tentatively Ready to Open: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#471">471</a>.</li>
662 <li>Changed the following issues from New to Pending NAD Editorial: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#633">633</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#641">641</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#656">656</a>.</li>
663 <li>Changed the following issues from Tentatively Ready to Pending NAD Editorial: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#532">532</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#553">553</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#571">571</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#591">591</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#594">594</a>.</li>
664 <li>Changed the following issues from Tentatively Ready to Pending WP: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#258">258</a>.</li>
665 <li>Changed the following issues from New to Ready: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#566">566</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#628">628</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#640">640</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#643">643</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#644">644</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#646">646</a>.</li>
666 <li>Changed the following issues from Review to Ready: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#531">531</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#551">551</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#604">604</a>.</li>
667 <li>Changed the following issues from Ready to TRDec: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#598">598</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#599">599</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#600">600</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#601">601</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#602">602</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#603">603</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#605">605</a>.</li>
668 <li>Changed the following issues from Ready to WP: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#543">543</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#545">545</a>.</li>
669 <li>Changed the following issues from Tentatively Ready to WP: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#201">201</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#206">206</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#233">233</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#254">254</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#416">416</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#422">422</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#456">456</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#534">534</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#542">542</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#559">559</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#575">575</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#576">576</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#578">578</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#586">586</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#589">589</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#593">593</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#609">609</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#610">610</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#611">611</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#613">613</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#616">616</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#619">619</a>.</li>
674 2007-03-09 pre-Oxford mailing.
676 <li><b>Summary:</b><ul>
677 <li>178 open issues, up by 37.</li>
678 <li>478 closed issues, up by 0.</li>
679 <li>656 issues total, up by 37.</li>
681 <li><b>Details:</b><ul>
682 <li>Added the following New issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#620">620</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#621">621</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#622">622</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#623">623</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#624">624</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#627">627</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#628">628</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#629">629</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#630">630</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#631">631</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#632">632</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#633">633</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#634">634</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#635">635</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#636">636</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#637">637</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#638">638</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#639">639</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#640">640</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#641">641</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#642">642</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#643">643</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#644">644</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#645">645</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#646">646</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#647">647</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#648">648</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#649">649</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#650">650</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#651">651</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#652">652</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#653">653</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#654">654</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#655">655</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#656">656</a>.</li>
683 <li>Added the following Open issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#625">625</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#626">626</a>.</li>
684 <li>Changed the following issues from New to Open: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#570">570</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#580">580</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#582">582</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#590">590</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#612">612</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#614">614</a>.</li>
685 <li>Changed the following issues from New to Tentatively Ready: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#547">547</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#553">553</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#560">560</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#571">571</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#572">572</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#575">575</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#576">576</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#578">578</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#586">586</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#589">589</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#591">591</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#593">593</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#594">594</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#609">609</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#610">610</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#611">611</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#613">613</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#615">615</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#616">616</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#619">619</a>.</li>
686 <li>Changed the following issues from Open to Tentatively Ready: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#201">201</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#206">206</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#233">233</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#254">254</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#258">258</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#385">385</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#416">416</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#422">422</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#456">456</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#463">463</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#466">466</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#470">470</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#471">471</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#479">479</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#482">482</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#515">515</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#526">526</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#532">532</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#536">536</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#542">542</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#559">559</a>.</li>
687 <li>Changed the following issues from Review to Tentatively Ready: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#534">534</a>.</li>
692 2007-01-12 mid-term mailing.
694 <li><b>Summary:</b><ul>
695 <li>141 open issues, up by 11.</li>
696 <li>478 closed issues, down by 1.</li>
697 <li>619 issues total, up by 10.</li>
699 <li><b>Details:</b><ul>
700 <li>Added new issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#610">610</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#611">611</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#612">612</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#613">613</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#614">614</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#615">615</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#616">616</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#617">617</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#618">618</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#619">619</a>.</li>
705 2006-11-03 post-Portland mailing.
707 <li><b>Summary:</b><ul>
708 <li>130 open issues, up by 0.</li>
709 <li>479 closed issues, up by 17.</li>
710 <li>609 issues total, up by 17.</li>
712 <li><b>Details:</b><ul>
713 <li>Moved issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#520">520</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#521">521</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#530">530</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#535">535</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#537">537</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#538">538</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#540">540</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#541">541</a> to WP.</li>
714 <li>Moved issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#504">504</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#512">512</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#516">516</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#544">544</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#549">549</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#554">554</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#555">555</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#558">558</a> to NAD.</li>
715 <li>Moved issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#569">569</a> to Dup.</li>
716 <li>Moved issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#518">518</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#523">523</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#524">524</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#542">542</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#556">556</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#557">557</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#559">559</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#597">597</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#606">606</a> to Open.</li>
717 <li>Moved issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#543">543</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#545">545</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#549">549</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#549">549</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#598">598</a> - <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#603">603</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#605">605</a> to Ready.</li>
718 <li>Moved issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#531">531</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#551">551</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#604">604</a> to Review.</li>
719 <li>Added new issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#593">593</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#594">594</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#595">595</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#596">596</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#597">597</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#598">598</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#599">599</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#600">600</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#601">601</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#602">602</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#603">603</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#604">604</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#605">605</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#606">606</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#607">607</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#608">608</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#609">609</a>.</li>
724 2006-09-08 pre-Portland mailing.
726 <li><b>Summary:</b><ul>
727 <li>130 open issues, up by 6.</li>
728 <li>462 closed issues, down by 1.</li>
729 <li>592 issues total, up by 5.</li>
731 <li><b>Details:</b><ul>
732 <li>Added new issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#583">583</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#584">584</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#585">585</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#586">586</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#587">587</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#588">588</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#589">589</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#590">590</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#591">591</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#592">592</a>.</li>
737 2006-06-23 mid-term mailing.
739 <li><b>Summary:</b><ul>
740 <li>124 open issues, up by 14.</li>
741 <li>463 closed issues, down by 1.</li>
742 <li>587 issues total, up by 13.</li>
744 <li><b>Details:</b><ul>
745 <li>Added new issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#575">575</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#576">576</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#577">577</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#578">578</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#579">579</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#580">580</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#581">581</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#582">582</a>.</li>
746 <li>Reopened <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#255">255</a>.</li>
747 <li>Moved issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#520">520</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#541">541</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#544">544</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#569">569</a> to Tentatively Ready.</li>
752 2006-04-21 post-Berlin mailing.
754 <li><b>Summary:</b><ul>
755 <li>110 open issues, down by 16.</li>
756 <li>464 closed issues, up by 24.</li>
757 <li>574 issues total, up by 8.</li>
759 <li><b>Details:</b><ul>
760 <li>Added new issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#567">567</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#568">568</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#569">569</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#570">570</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#571">571</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#572">572</a>.</li>
761 <li>Moved issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#499">499</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#501">501</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#506">506</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#509">509</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#510">510</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#511">511</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#513">513</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#514">514</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#517">517</a> to NAD.</li>
762 <li>Moved issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#502">502</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#503">503</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#515">515</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#516">516</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#522">522</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#525">525</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#526">526</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#527">527</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#528">528</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#529">529</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#532">532</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#536">536</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#539">539</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#548">548</a> to Open.</li>
763 <li>Moved issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#504">504</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#512">512</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#521">521</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#530">530</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#531">531</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#535">535</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#537">537</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#538">538</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#540">540</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#549">549</a> to Ready.</li>
764 <li>Moved issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#247">247</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#294">294</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#362">362</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#369">369</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#371">371</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#376">376</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#384">384</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#475">475</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#478">478</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#495">495</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#497">497</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#505">505</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#507">507</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#508">508</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#519">519</a> to WP.</li>
765 <li>Moved issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#534">534</a> to Review.</li>
770 2006-02-24 pre-Berlin mailing.
772 <li><b>Summary:</b><ul>
773 <li>126 open issues, up by 31.</li>
774 <li>440 closed issues, up by 0.</li>
775 <li>566 issues total, up by 31.</li>
777 <li><b>Details:</b><ul>
778 <li>Added new issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#536">536</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#537">537</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#538">538</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#539">539</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#540">540</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#541">541</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#542">542</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#543">543</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#544">544</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#545">545</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#546">546</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#547">547</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#548">548</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#549">549</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#550">550</a> ,<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#551">551</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#552">552</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#553">553</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#554">554</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#555">555</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#556">556</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#557">557</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#558">558</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#559">559</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#560">560</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#561">561</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#562">562</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#563">563</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#564">564</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#565">565</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#566">566</a>.</li>
779 <li>Moved <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#342">342</a> from Ready to Open.</li>
780 <li>Reopened <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#309">309</a>.</li>
785 2005-12-16 mid-term mailing.
787 <li><b>Summary:</b><ul>
788 <li>95 open issues.</li>
789 <li>440 closed issues.</li>
790 <li>535 issues total.</li>
792 <li><b>Details:</b><ul>
793 <li>Added new issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#529">529</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#530">530</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#531">531</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#532">532</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#533">533</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#534">534</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#535">535</a>.</li>
798 2005-10-14 post-Mont Tremblant mailing.
799 Added new issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#526">526</a>-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#528">528</a>.
800 Moved issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#280">280</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#461">461</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#464">464</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#465">465</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#467">467</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#468">468</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#474">474</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#496">496</a> from Ready to WP as per the vote from Mont Tremblant.
801 Moved issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#247">247</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#294">294</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#342">342</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#362">362</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#369">369</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#371">371</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#376">376</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#384">384</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#475">475</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#478">478</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#495">495</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#497">497</a> from Review to Ready.
802 Moved issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#498">498</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#504">504</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#506">506</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#509">509</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#510">510</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#511">511</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#512">512</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#513">513</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#514">514</a> from New to Open.
803 Moved issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#505">505</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#507">507</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#508">508</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#519">519</a> from New to Ready.
804 Moved issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#500">500</a> from New to NAD.
805 Moved issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#518">518</a> from New to Review.
808 2005-07-03 pre-Mont Tremblant mailing.
809 Merged open TR1 issues in <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#504">504</a>-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#522">522</a>.
810 Added new issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#523">523</a>-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#523">523</a>
813 2005-06 mid-term mailing.
814 Added new issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#498">498</a>-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#503">503</a>.
817 2005-04 post-Lillehammer mailing. All issues in "ready" status except
818 for <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#454">454</a> were moved to "DR" status, and all issues
819 previously in "DR" status were moved to "WP".
822 2005-03 pre-Lillehammer mailing.
825 2005-01 mid-term mailing. Added new issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#488">488</a>-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#494">494</a>.
828 2004-11 post-Redmond mailing. Reflects actions taken in Redmond.
831 2004-09 pre-Redmond mailing: reflects new proposed resolutions and
832 new issues received after the 2004-07 mailing. Added
833 new issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#479">479</a>-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#481">481</a>.
836 2004-07 mid-term mailing: reflects new proposed resolutions and
837 new issues received after the post-Sydney mailing. Added
838 new issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#463">463</a>-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#478">478</a>.
841 Post-Sydney mailing: reflects decisions made at the Sydney meeting.
842 Voted all "Ready" issues from R29 into the working paper.
843 Added new issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#460">460</a>-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#462">462</a>.
846 Pre-Sydney mailing. Added new issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#441">441</a>-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#457">457</a>.
849 Post-Kona mailing: reflects decisions made at the Kona meeting.
850 Added new issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#432">432</a>-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#440">440</a>.
853 Pre-Kona mailing. Added new issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#404">404</a>-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#431">431</a>.
856 Post-Oxford mailing: reflects decisions made at the Oxford meeting.
857 All issues in Ready status were voted into DR status. All issues in
858 DR status were voted into WP status.
861 Pre-Oxford mailing. Added new issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#390">390</a>-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#402">402</a>.
864 Post-Santa Cruz mailing: reflects decisions made at the Santa Cruz
865 meeting. All Ready issues from R23 with the exception of <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#253">253</a>, which has been given a new proposed resolution, were
866 moved to DR status. Added new issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#383">383</a>-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#389">389</a>. (Issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#387">387</a>-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#389">389</a> were discussed
867 at the meeting.) Made progress on issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#225">225</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#226">226</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#229">229</a>: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#225">225</a> and <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#229">229</a> have been moved to Ready status, and the only remaining
868 concerns with <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#226">226</a> involve wording.
871 Pre-Santa Cruz mailing. Added new issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#367">367</a>-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#382">382</a>.
872 Moved issues in the TC to TC status.
875 Post-Curaçao mailing. Added new issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#362">362</a>-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#366">366</a>.
878 Pre-Curaçao mailing. Added new issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#351">351</a>-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#361">361</a>.
881 Post-Redmond mailing; reflects actions taken in Redmond. Added
882 new issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#336">336</a>-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#350">350</a>, of which issues
883 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#347">347</a>-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#350">350</a> were added since Redmond, hence
884 not discussed at the meeting.
886 All Ready issues were moved to DR status, with the exception of issues
887 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#284">284</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#241">241</a>, and <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#267">267</a>.
889 Noteworthy issues discussed at Redmond include
890 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#120">120</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#202">202</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#226">226</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#233">233</a>,
891 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#270">270</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#253">253</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#254">254</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#323">323</a>.
894 Pre-Redmond mailing. Added new issues
895 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#323">323</a>-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#335">335</a>.
898 Post-Copenhagen mailing; reflects actions taken in Copenhagen.
899 Added new issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#312">312</a>-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#317">317</a>, and discussed
900 new issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#271">271</a>-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#314">314</a>.
902 Changed status of issues
903 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#103">103</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#118">118</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#136">136</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#153">153</a>
904 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#165">165</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#171">171</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#183">183</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#184">184</a>
905 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#185">185</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#186">186</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#214">214</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#221">221</a>
906 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#234">234</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#237">237</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#243">243</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#248">248</a>
907 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#251">251</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#252">252</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#256">256</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#260">260</a>
908 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#261">261</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#262">262</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#263">263</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#265">265</a>
909 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#268">268</a>
912 Changed status of issues
913 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#49">49</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#109">109</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#117">117</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#182">182</a>
914 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#228">228</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#230">230</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#232">232</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#235">235</a>
915 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#238">238</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#241">241</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#242">242</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#250">250</a>
916 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#259">259</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#264">264</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#266">266</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#267">267</a>
917 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#271">271</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#272">272</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#273">273</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#275">275</a>
918 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#281">281</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#284">284</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#285">285</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#286">286</a>
919 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#288">288</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#292">292</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#295">295</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#297">297</a>
920 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#298">298</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#301">301</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#303">303</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#306">306</a>
921 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#307">307</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#308">308</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#312">312</a>
925 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#111">111</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#277">277</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#279">279</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#287">287</a>
926 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#289">289</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#293">293</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#302">302</a> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#313">313</a>
927 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#314">314</a>
932 Pre-Copenhagen mailing. Converted issues list to XML. Added proposed
933 resolutions for issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#49">49</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#76">76</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#91">91</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#235">235</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#250">250</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#267">267</a>.
934 Added new issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#278">278</a>-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#311">311</a>.
937 post-Toronto mailing; reflects actions taken in Toronto. Added new
938 issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#265">265</a>-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#277">277</a>. Changed status of issues
939 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#3">3</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#8">8</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#9">9</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#19">19</a>,
940 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#26">26</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#31">31</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#61">61</a>,
941 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#63">63</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#86">86</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#108">108</a>,
942 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#112">112</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#114">114</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#115">115</a>,
943 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#122">122</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#127">127</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#129">129</a>,
944 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#134">134</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#137">137</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#142">142</a>,
945 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#144">144</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#146">146</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#147">147</a>,
946 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#159">159</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#164">164</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#170">170</a>,
947 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#181">181</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#199">199</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#208">208</a>,
948 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#209">209</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#210">210</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#211">211</a>,
949 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#212">212</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#217">217</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#220">220</a>,
950 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#222">222</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#223">223</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#224">224</a>,
951 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#227">227</a> to "DR". Reopened issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#23">23</a>. Reopened
952 issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#187">187</a>. Changed issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#2">2</a> and
953 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#4">4</a> to NAD. Fixed a typo in issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#17">17</a>. Fixed
954 issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#70">70</a>: signature should be changed both places it
955 appears. Fixed issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#160">160</a>: previous version didn't fix
956 the bug in enough places.
959 pre-Toronto mailing. Added issues
960 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#233">233</a>-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#264">264</a>. Some small HTML formatting
961 changes so that we pass Weblint tests.
964 post-Tokyo II mailing; reflects committee actions taken in
965 Tokyo. Added issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#228">228</a> to <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#232">232</a>. (00-0019R1/N1242)
968 pre-Tokyo II updated: Added issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#212">212</a> to <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#227">227</a>.
971 pre-Tokyo II mailing: Added issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#199">199</a> to
972 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#211">211</a>. Added "and paragraph 5" to the proposed resolution
973 of issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#29">29</a>. Add further rationale to issue
974 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#178">178</a>.
977 post-Kona mailing: Updated to reflect LWG and full committee actions
978 in Kona (99-0048/N1224). Note changed resolution of issues
979 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#4">4</a> and <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#38">38</a>. Added issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#196">196</a>
980 to <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#198">198</a>. Closed issues list split into "defects" and
981 "closed" documents. Changed the proposed resolution of issue
982 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#4">4</a> to NAD, and changed the wording of proposed resolution
983 of issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#38">38</a>.
986 pre-Kona updated. Added proposed resolutions <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#83">83</a>,
987 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#86">86</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#91">91</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#92">92</a>,
988 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#109">109</a>. Added issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#190">190</a> to
989 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#195">195</a>. (99-0033/D1209, 14 Oct 99)
992 pre-Kona mailing. Added issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#140">140</a> to
993 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#189">189</a>. Issues list split into separate "active" and
994 "closed" documents. (99-0030/N1206, 25 Aug 99)
997 post-Dublin mailing. Updated to reflect LWG and full committee actions
998 in Dublin. (99-0016/N1193, 21 Apr 99)
1001 pre-Dublin updated: Added issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#130">130</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#131">131</a>,
1002 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#132">132</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#133">133</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#134">134</a>,
1003 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#135">135</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#136">136</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#137">137</a>,
1004 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#138">138</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#139">139</a> (31 Mar 99)
1007 pre-Dublin mailing. Added issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#127">127</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#128">128</a>,
1008 and <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#129">129</a>. (99-0007/N1194, 22 Feb 99)
1011 update issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#103">103</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#112">112</a>; added issues
1012 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#114">114</a> to <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#126">126</a>. Format revisions to prepare
1013 for making list public. (30 Dec 98)
1016 post-Santa Cruz II updated: Issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#110">110</a>,
1017 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#111">111</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#112">112</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#113">113</a> added, several
1018 issues corrected. (22 Oct 98)
1021 post-Santa Cruz II: Issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#94">94</a> to <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#109">109</a>
1022 added, many issues updated to reflect LWG consensus (12 Oct 98)
1025 pre-Santa Cruz II: Issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#73">73</a> to <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#93">93</a> added,
1026 issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#17">17</a> updated. (29 Sep 98)
1029 Correction to issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#55">55</a> resolution, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#60">60</a> code
1030 format, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#64">64</a> title. (17 Sep 98)
1034 <h2><a name="Status"></a>Issue Status</h2>
1036 <p><b><a name="New">New</a></b> - The issue has not yet been
1037 reviewed by the LWG. Any <b>Proposed Resolution</b> is purely a
1038 suggestion from the issue submitter, and should not be construed as
1039 the view of LWG.</p>
1041 <p><b><a name="Open">Open</a></b> - The LWG has discussed the issue
1042 but is not yet ready to move the issue forward. There are several
1043 possible reasons for open status:</p>
1045 <li>Consensus may have not yet have been reached as to how to deal
1046 with the issue.</li>
1047 <li>Informal consensus may have been reached, but the LWG awaits
1048 exact <b>Proposed Resolution</b> wording for review.</li>
1049 <li>The LWG wishes to consult additional technical experts before
1051 <li>The issue may require further study.</li>
1054 <p>A <b>Proposed Resolution</b> for an open issue is still not be
1055 construed as the view of LWG. Comments on the current state of
1056 discussions are often given at the end of open issues in an italic
1057 font. Such comments are for information only and should not be given
1058 undue importance.</p>
1060 <p><b><a name="Dup">Dup</a></b> - The LWG has reached consensus that
1061 the issue is a duplicate of another issue, and will not be further
1062 dealt with. A <b>Rationale</b> identifies the duplicated issue's
1065 <p><b><a name="NAD">NAD</a></b> - The LWG has reached consensus that
1066 the issue is not a defect in the Standard.</p>
1068 <p><b><a name="NAD Editorial">NAD Editorial</a></b> - The LWG has reached consensus that
1069 the issue can either be handled editorially, or is handled by a paper (usually
1070 linked to in the rationale).</p>
1072 <p><b><a name="NAD Concepts">NAD Concepts</a></b> - The LWG has reached consensus that
1073 the issue is NAD for now, but represents a real issue when the library is
1074 done with language-supported concepts.</p>
1076 <p><b><a name="NAD Future">NAD Future</a></b> - In addition to the regular
1077 status, the LWG believes that this issue should be revisited at the
1078 next revision of the standard.</p>
1080 <p><b><a name="Review">Review</a></b> - Exact wording of a
1081 <b>Proposed Resolution</b> is now available for review on an issue
1082 for which the LWG previously reached informal consensus.</p>
1084 <p><b><a name="Ready">Ready</a></b> - The LWG has reached consensus
1085 that the issue is a defect in the Standard, the <b>Proposed
1086 Resolution</b> is correct, and the issue is ready to forward to the
1087 full committee for further action as a Defect Report (DR).</p>
1089 <p><b><a name="DR">DR</a></b> - (Defect Report) - The full J16
1090 committee has voted to forward the issue to the Project Editor to be
1091 processed as a Potential Defect Report. The Project Editor reviews
1092 the issue, and then forwards it to the WG21 Convenor, who returns it
1093 to the full committee for final disposition. This issues list
1094 accords the status of DR to all these Defect Reports regardless of
1095 where they are in that process.</p>
1097 <p><b><a name="TC1">TC1</a></b> - (Technical Corrigenda 1) - The full
1098 WG21 committee has voted to accept the Defect Report's Proposed
1099 Resolution as a Technical Corrigenda. Action on this issue is thus
1100 complete and no further action is possible under ISO rules.</p>
1102 <p><b><a name="CD1">CD1</a></b> - (Committee Draft 2008) - The full
1103 WG21 committee has voted to accept the Defect Report's Proposed
1104 Resolution into the Fall 2008 Committee Draft.</p>
1106 <p><b><a name="TRDec">TRDec</a></b> - (Decimal TR defect) - The
1107 LWG has voted to accept the Defect Report's Proposed
1108 Resolution into the Decimal TR. Action on this issue is thus
1109 complete and no further action is expected.</p>
1111 <p><b><a name="WP">WP</a></b> - (Working Paper) - The proposed
1112 resolution has not been accepted as a Technical Corrigendum, but
1113 the full WG21 committee has voted to apply the Defect Report's Proposed
1114 Resolution to the working paper.</p>
1116 <p><b>Tentatively</b> - This is a <i>status qualifier</i>. The issue has
1117 been reviewed online, or at an unofficial meeting, but not in an official meeting, and some support has been formed
1118 for the qualified status. Tentatively qualified issues may be moved to the unqualified status
1119 and forwarded to full committee (if Ready) within the same meeting. Unlike Ready issues, Tentatively Ready issues
1120 will be reviewed in subcommittee prior to forwarding to full committee. When a status is
1121 qualified with Tentatively, the issue is still considered active.</p>
1123 <p><b>Pending</b> - This is a <i>status qualifier</i>. When prepended to
1124 a status this indicates the issue has been
1125 processed by the committee, and a decision has been made to move the issue to
1126 the associated unqualified status. However for logistical reasons the indicated
1127 outcome of the issue has not yet appeared in the latest working paper.
1129 </p><p>Issues are always given the status of <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a> when
1130 they first appear on the issues list. They may progress to
1131 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a> or <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Review">Review</a> while the LWG
1132 is actively working on them. When the LWG has reached consensus on
1133 the disposition of an issue, the status will then change to
1134 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Dup">Dup</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#NAD">NAD</a>, or
1135 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a> as appropriate. Once the full J16 committee votes to
1136 forward Ready issues to the Project Editor, they are given the
1137 status of Defect Report ( <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#DR">DR</a>). These in turn may
1138 become the basis for Technical Corrigenda (<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#TC">TC</a>),
1139 or are closed without action other than a Record of Response
1140 (<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#RR">RR</a> ). The intent of this LWG process is that
1141 only issues which are truly defects in the Standard move to the
1142 formal ISO DR status.
1146 <h2>Active Issues</h2>
1148 <h3><a name="296"></a>296. Missing descriptions and requirements of pair operators</h3>
1149 <p><b>Section:</b> 20.3.4 [pairs] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
1150 <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2001-01-14 <b>Last modified:</b> 2009-10-26</p>
1151 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#pairs">active issues</a> in [pairs].</p>
1152 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#pairs">issues</a> in [pairs].</p>
1153 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
1154 <p><b>Discussion:</b></p>
1155 <p>The synopsis of the header <tt><utility></tt> in 20.3 [utility]
1156 lists the complete set of equality and relational operators for <tt>pair</tt>
1157 but the section describing the template and the operators only describes
1158 <tt>operator==()</tt> and <tt>operator<()</tt>, and it fails to mention
1159 any requirements on the template arguments. The remaining operators are
1160 not mentioned at all.
1164 2009-09-27 Alisdair reopens.
1170 The issue is a lack of wording specifying the semantics of <tt>std::pair</tt>
1171 relational operators. The rationale is that this is covered by
1172 catch-all wording in the relops component, and that as relops directly
1173 precedes <tt>pair</tt> in the document this is an easy connection to make.
1177 Reading the current working paper I make two observations:
1182 relops no longer immediately precedes <tt>pair</tt> in the order of
1183 specification. However, even if it did, there is a lot of <tt>pair</tt>
1184 specification itself between the (apparently) unrelated relops and the
1185 relational operators for <tt>pair</tt>. (The catch-all still requires
1186 <tt>operator==</tt> and <tt>operator<</tt> to be specified
1191 No other library component relies on the catch-all clause. The following
1192 all explicitly document all six relational operators, usually in a
1193 manner that could have deferred to the relops clause.
1197 <blockquote><pre>tuple
1211 The container components provide their own (equivalent) definition in
1212 23.2.1 [container.requirements.general] Table 90 -- Container
1213 requirements and do so do not defer to relops.
1217 <tt>Shared_ptr</tt> explicitly documents <tt>operator!=</tt> and does
1218 not supply the other 3 missing operators
1219 (<tt>></tt>,<tt>>=</tt>,<tt><=</tt>) so does not meet the
1220 reqirements of the relops clause.
1224 <tt>Weak_ptr</tt> only supports <tt>operator<</tt> so would not be
1229 At the very least I would request a note pointing to the relops clause
1230 we rely on to provide this definition. If this route is taken, I would
1231 recommend reducing many of the above listed clauses to a similar note
1232 rather than providing redundant specification.
1236 My preference would be to supply the 4 missing specifications consistent
1237 with the rest of the library.
1243 2009-10-11 Daniel opens <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1233">1233</a> which deals with the same issue as
1244 it pertains to <tt>unique_ptr</tt>.
1259 <p><b>Proposed resolution:</b></p>
1261 After p20 20.3.4 [pairs] add:
1264 <blockquote><pre>template <class T1, class T2>
1265 bool operator!=(const pair<T1,T2>& x, const pair<T1,T2>& y);
1269 <i>Returns:</i> <tt>!(x==y)</tt>
1272 <pre>template <class T1, class T2>
1273 bool operator> (const pair<T1,T2>& x, const pair<T1,T2>& y);
1277 <i>Returns:</i> <tt>y < x</tt>
1280 <pre>template <class T1, class T2>
1281 bool operator>=(const pair<T1,T2>& x, const pair<T1,T2>& y);
1285 <i>Returns:</i> <tt>!(x < y)</tt>
1288 <pre>template <class T1, class T2>
1289 bool operator<=(const pair<T1,T2>& x, const pair<T1,T2>& y);
1293 <i>Returns:</i> <tt>!(y < x)</tt>
1298 <p><b>Rationale:</b></p>
1299 <p>20.3.1 [operators] paragraph 10 already specifies the semantics.
1300 That paragraph says that, if declarations of operator!=, operator>,
1301 operator<=, and operator>= appear without definitions, they are
1302 defined as specified in 20.3.1 [operators]. There should be no user
1303 confusion, since that paragraph happens to immediately precede the
1304 specification of <tt>pair</tt>.</p>
1311 <h3><a name="299"></a>299. Incorrect return types for iterator dereference</h3>
1312 <p><b>Section:</b> 24.2.4 [bidirectional.iterators], 24.2.5 [random.access.iterators] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
1313 <b>Submitter:</b> John Potter <b>Opened:</b> 2001-01-22 <b>Last modified:</b> 2009-10-26</p>
1314 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#bidirectional.iterators">issues</a> in [bidirectional.iterators].</p>
1315 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
1316 <p><b>Discussion:</b></p>
1318 In section 24.2.4 [bidirectional.iterators],
1319 Table 75 gives the return type of *r-- as convertible to T. This is
1320 not consistent with Table 74 which gives the return type of *r++ as
1321 T&. *r++ = t is valid while *r-- = t is invalid.
1325 In section 24.2.5 [random.access.iterators],
1326 Table 76 gives the return type of a[n] as convertible to T. This is
1327 not consistent with the semantics of *(a + n) which returns T& by
1328 Table 74. *(a + n) = t is valid while a[n] = t is invalid.
1332 Discussion from the Copenhagen meeting: the first part is
1333 uncontroversial. The second part, operator[] for Random Access
1334 Iterators, requires more thought. There are reasonable arguments on
1335 both sides. Return by value from operator[] enables some potentially
1336 useful iterators, e.g. a random access "iota iterator" (a.k.a
1337 "counting iterator" or "int iterator"). There isn't any obvious way
1338 to do this with return-by-reference, since the reference would be to a
1339 temporary. On the other hand, <tt>reverse_iterator</tt> takes an
1340 arbitrary Random Access Iterator as template argument, and its
1341 operator[] returns by reference. If we decided that the return type
1342 in Table 76 was correct, we would have to change
1343 <tt>reverse_iterator</tt>. This change would probably affect user
1348 History: the contradiction between <tt>reverse_iterator</tt> and the
1349 Random Access Iterator requirements has been present from an early
1350 stage. In both the STL proposal adopted by the committee
1351 (N0527==94-0140) and the STL technical report (HPL-95-11 (R.1), by
1352 Stepanov and Lee), the Random Access Iterator requirements say that
1353 operator[]'s return value is "convertible to T". In N0527
1354 reverse_iterator's operator[] returns by value, but in HPL-95-11
1355 (R.1), and in the STL implementation that HP released to the public,
1356 reverse_iterator's operator[] returns by reference. In 1995, the
1357 standard was amended to reflect the contents of HPL-95-11 (R.1). The
1358 original intent for operator[] is unclear.
1362 In the long term it may be desirable to add more fine-grained
1363 iterator requirements, so that access method and traversal strategy
1364 can be decoupled. (See "Improved Iterator Categories and
1365 Requirements", N1297 = 01-0011, by Jeremy Siek.) Any decisions
1366 about issue 299 should keep this possibility in mind.
1369 <p>Further discussion: I propose a compromise between John Potter's
1370 resolution, which requires <tt>T&</tt> as the return type of
1371 <tt>a[n]</tt>, and the current wording, which requires convertible to
1372 <tt>T</tt>. The compromise is to keep the convertible to <tt>T</tt>
1373 for the return type of the expression <tt>a[n]</tt>, but to also add
1374 <tt>a[n] = t</tt> as a valid expression. This compromise "saves" the
1375 common case uses of random access iterators, while at the same time
1376 allowing iterators such as counting iterator and caching file
1377 iterators to remain random access iterators (iterators where the
1378 lifetime of the object returned by <tt>operator*()</tt> is tied to the
1379 lifetime of the iterator).
1383 Note that the compromise resolution necessitates a change to
1384 <tt>reverse_iterator</tt>. It would need to use a proxy to support
1389 Note also there is one kind of mutable random access iterator that
1390 will no longer meet the new requirements. Currently, iterators that
1391 return an r-value from <tt>operator[]</tt> meet the requirements for a
1392 mutable random access iterartor, even though the expression <tt>a[n] =
1393 t</tt> will only modify a temporary that goes away. With this proposed
1394 resolution, <tt>a[n] = t</tt> will be required to have the same
1395 operational semantics as <tt>*(a + n) = t</tt>.
1399 2009-07-28 Reopened by Alisdair. No longer solved by concepts.
1404 2009-09-18 Alisdair adds:
1410 Why can't we write through the reference returned from operator[] on a
1411 random access iterator?
1415 Recommended solution:
1419 In table Table 104 -- Random access iterator requirements, replace
1423 a[n] : convertible to <del><tt>const T &</tt></del>
1424 <ins><tt>T&</tt> if <tt>X</tt> is mutable, otherwise convertible to <tt>const T&</tt></ins>
1434 Leave Open. Alisdair to spearhead a paper on revivification.
1439 <p><b>Proposed resolution:</b></p>
1442 In section 24.1.4 [lib.bidirectdional.iterators], change the return
1443 type in table 75 from "convertible to <tt>T</tt>" to
1448 In section 24.1.5 [lib.random.access.iterators], change the
1449 operational semantics for <tt>a[n]</tt> to " the r-value of
1450 <tt>a[n]</tt> is equivalent to the r-value of <tt>*(a +
1451 n)</tt>". Add a new row in the table for the expression <tt>a[n] = t</tt>
1452 with a return type of convertible to <tt>T</tt> and operational semantics of
1453 <tt>*(a + n) = t</tt>.
1456 <p><i>[Lillehammer: Real problem, but should be addressed as part of
1457 iterator redesign]</i></p>
1462 <p><b>Rationale:</b></p>
1470 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2758.pdf">N2758</a>.
1480 <h3><a name="397"></a>397. ostream::sentry dtor throws exceptions</h3>
1481 <p><b>Section:</b> 27.7.2.4 [ostream::sentry] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
1482 <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2003-01-05 <b>Last modified:</b> 2009-10-20</p>
1483 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#ostream::sentry">issues</a> in [ostream::sentry].</p>
1484 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
1485 <p><b>Discussion:</b></p>
1487 17.4.4.8, p3 prohibits library dtors from throwing exceptions.
1490 27.6.2.3, p4 says this about the ostream::sentry dtor:
1492 <pre> -4- If ((os.flags() & ios_base::unitbuf) && !uncaught_exception())
1493 is true, calls os.flush().
1496 27.6.2.6, p7 that describes ostream::flush() says:
1498 <pre> -7- If rdbuf() is not a null pointer, calls rdbuf()->pubsync().
1499 If that function returns ?-1 calls setstate(badbit) (which
1500 may throw ios_base::failure (27.4.4.3)).
1503 That seems like a defect, since both pubsync() and setstate() can
1507 The contradiction is real. Clause 17 says destructors may never
1508 throw exceptions, and clause 27 specifies a destructor that does
1509 throw. In principle we might change either one. We're leaning
1510 toward changing clause 17: putting in an "unless otherwise specified"
1511 clause, and then putting in a footnote saying the sentry destructor
1512 is the only one that can throw. PJP suggests specifying that
1513 sentry::~sentry() should internally catch any exceptions it might cause.
1518 See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#418">418</a> and <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#622">622</a> for related issues.
1529 Move to Review. Add "Throws: nothing" to the specification of ostream::sentry::~sentry().
1534 2009-10-13 Daniel adds:
1539 The proposed resolution of <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#835">835</a> is written to match the outcome
1549 Move to Open. Our intent is to solve this issue with <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#835">835</a>.
1554 <p><b>Proposed resolution:</b></p>
1556 Add after 27.7.2.4 [ostream::sentry] p17:
1564 -17- If <tt>((os.flags() & ios_base::unitbuf) && !uncaught_exception())</tt>
1565 is <tt>true</tt>, calls <tt>os.flush()</tt>.
1569 <i>Throws:</i> Nothing.
1579 <h3><a name="408"></a>408. Is vector<reverse_iterator<char*> > forbidden?</h3>
1580 <p><b>Section:</b> 24.2 [iterator.requirements] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
1581 <b>Submitter:</b> Nathan Myers <b>Opened:</b> 2003-06-03 <b>Last modified:</b> 2009-11-03</p>
1582 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#iterator.requirements">active issues</a> in [iterator.requirements].</p>
1583 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#iterator.requirements">issues</a> in [iterator.requirements].</p>
1584 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
1585 <p><b>Discussion:</b></p>
1587 I've been discussing iterator semantics with Dave Abrahams, and a
1588 surprise has popped up. I don't think this has been discussed before.
1592 X [iterator.concepts] says that the only operation that can be performed on "singular"
1593 iterator values is to assign a non-singular value to them. (It
1594 doesn't say they can be destroyed, and that's probably a defect.)
1595 Some implementations have taken this to imply that there is no need
1596 to initialize the data member of a reverse_iterator<> in the default
1597 constructor. As a result, code like
1599 <blockquote><pre> std::vector<std::reverse_iterator<char*> > v(7);
1603 invokes undefined behavior, because it must default-initialize the
1604 vector elements, and then copy them to other storage. Of course many
1605 other vector operations on these adapters are also left undefined,
1606 and which those are is not reliably deducible from the standard.
1610 I don't think that 24.1 was meant to make standard-library iterator
1611 types unsafe. Rather, it was meant to restrict what operations may
1612 be performed by functions which take general user- and standard
1613 iterators as arguments, so that raw pointers would qualify as
1614 iterators. However, this is not clear in the text, others have come
1615 to the opposite conclusion.
1619 One question is whether the standard iterator adaptors have defined
1620 copy semantics. Another is whether they have defined destructor
1623 <blockquote><pre> { std::vector<std::reverse_iterator<char*> > v(7); }
1630 Note this is not a question of whether algorithms are allowed to
1631 rely on copy semantics for arbitrary iterators, just whether the
1632 types we actually supply support those operations. I believe the
1633 resolution must be expressed in terms of the semantics of the
1634 adapter's argument type. It should make clear that, e.g., the
1635 reverse_iterator<T> constructor is actually required to execute
1636 T(), and so copying is defined if the result of T() is copyable.
1640 Issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#235">235</a>, which defines reverse_iterator's default
1641 constructor more precisely, has some relevance to this issue.
1642 However, it is not the whole story.
1646 The issue was whether
1648 <blockquote><pre> reverse_iterator() { }
1653 <blockquote><pre> reverse_iterator() : current() { }
1657 The difference is when T is char*, where the first leaves the member
1658 uninitialized, and possibly equal to an existing pointer value, or
1659 (on some targets) may result in a hardware trap when copied.
1663 8.5 paragraph 5 seems to make clear that the second is required to
1664 satisfy DR <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#235">235</a>, at least for non-class Iterator argument
1669 But that only takes care of reverse_iterator, and doesn't establish
1670 a policy for all iterators. (The reverse iterator adapter was just
1671 an example.) In particular, does my function
1673 <blockquote><pre> template <typename Iterator>
1674 void f() { std::vector<Iterator> v(7); }
1677 evoke undefined behavior for some conforming iterator definitions?
1678 I think it does, now, because vector<> will destroy those singular
1679 iterator values, and that's explicitly disallowed.
1683 24.1 shouldn't give blanket permission to copy all singular iterators,
1684 because then pointers wouldn't qualify as iterators. However, it
1685 should allow copying of that subset of singular iterator values that
1686 are default-initialized, and it should explicitly allow destroying any
1687 iterator value, singular or not, default-initialized or not.
1690 <p>Related issues: <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#407">407</a>, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1012">1012</a></p>
1692 We don't want to require all singular iterators to be copyable,
1693 because that is not the case for pointers. However, default
1694 construction may be a special case. Issue: is it really default
1695 construction we want to talk about, or is it something like value
1696 initialization? We need to check with core to see whether default
1697 constructed pointers are required to be copyable; if not, it would be
1698 wrong to impose so strict a requirement for iterators.
1703 2009-05-10 Alisdair provided wording.
1708 The comments regarding destroying singular iterators have already been
1709 resolved. That just leaves copying (with moving implied).
1719 This is related to LWG <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1012">1012</a>.
1722 Note that there is a bug in the proposed resolution to LWG <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1012">1012</a>. The
1723 change to [reverse.iter.con] should be modified so that the word
1724 "default" in the second sentence of the Effects clause is replaced by
1728 We believe that the proposed fix to LWG <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1012">1012</a> (now corrected) is
1729 sufficient to solve the problem for reverse_iterator. However, Alisdair
1730 pointed out that LWG <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1012">1012</a> does not solve the general problem for authors
1731 of iterator adaptors.
1734 There are some problems with the proposed resolution. The phrase "safely
1735 copyable" is not a term of art. Also, it mentions a
1736 DefaultConstructible? concept.
1739 Move to Review after Alisdair updates the wording.
1744 2009-07-31 Alisdair revised wording:
1749 2009-08-17 Alisdair and Daniel collaborate on slightly revised wording.
1750 This issue depends upon <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#724">724</a>
1755 2009-10-14 Daniel adds:
1760 There is a clear dependency on <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1213">1213</a>, because the term "singular",
1761 which is used as part of the resolution, is not properly defined yet.
1770 Moved to Open. Alisdair will provide improved wording to make
1771 this have "value semantics" and otherwise behave like a valid iterator.
1776 <p><b>Proposed resolution:</b></p>
1778 Add a new paragrpah to Iterator concepts 24.2 [iterator.requirements] after para 5 (the one describing
1783 Just as a regular pointer to an array guarantees that there is a pointer
1784 value pointing past the last element of the array, so for any iterator
1785 type there is an iterator value that points past the last element of a
1786 corresponding container. These values are called <i>past-the-end</i> values.
1787 Values of an iterator <tt>i</tt> for which the expression <tt>*i</tt> is defined are called
1788 <i>dereferenceable</i>. The library never assumes that past-the-end values are
1789 dereferenceable. Iterators can also have singular values that are not
1790 associated with any container. [<i>Example:</i> After the declaration of an
1791 uninitialized pointer <tt>x</tt> (as with <tt>int* x;</tt>), <tt>x</tt> must always be assumed to
1792 have a singular value of a pointer. — <i>end example</i>] Results of most
1793 expressions are undefined for singular values; the only exceptions are
1794 destroying an iterator that holds a singular value and the assignment of
1795 a non-singular value to an iterator that holds a singular value. In this
1796 case the singular value is overwritten the same way as any other value.
1797 Dereferenceable values are always non-singular.
1800 After value-initialization, any iterator that satisfies the
1801 <tt>DefaultConstructible</tt> requirements ([defaultconstructible]) shall not introduce undefined behaviour
1802 when used <ins>as</ins> the
1803 source of a copy or move operation, even if it would
1804 otherwise be singular. [<i>Note:</i> This guarantee is not offered for
1805 default-initialization (8.5 [dcl.init]), although the distinction only
1806 matters for types with trivial default constructors such as pointers. —
1819 <h3><a name="427"></a>427. stage 2 and rationale of DR 221</h3>
1820 <p><b>Section:</b> 22.4.2.1.2 [facet.num.get.virtuals] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
1821 <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2003-09-18 <b>Last modified:</b> 2009-10-26</p>
1822 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#facet.num.get.virtuals">active issues</a> in [facet.num.get.virtuals].</p>
1823 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#facet.num.get.virtuals">issues</a> in [facet.num.get.virtuals].</p>
1824 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
1825 <p><b>Discussion:</b></p>
1827 The requirements specified in Stage 2 and reiterated in the rationale
1828 of DR 221 (and echoed again in DR 303) specify that num_get<charT>::
1829 do_get() compares characters on the stream against the widened elements
1830 of "012...abc...ABCX+-"
1834 An implementation is required to allow programs to instantiate the num_get
1835 template on any charT that satisfies the requirements on a user-defined
1836 character type. These requirements do not include the ability of the
1837 character type to be equality comparable (the char_traits template must
1838 be used to perform tests for equality). Hence, the num_get template cannot
1839 be implemented to support any arbitrary character type. The num_get template
1840 must either make the assumption that the character type is equality-comparable
1841 (as some popular implementations do), or it may use char_traits<charT> to do
1842 the comparisons (some other popular implementations do that). This diversity
1843 of approaches makes it difficult to write portable programs that attempt to
1844 instantiate the num_get template on user-defined types.
1847 <p><i>[Kona: the heart of the problem is that we're theoretically
1848 supposed to use traits classes for all fundamental character
1849 operations like assignment and comparison, but facets don't have
1850 traits parameters. This is a fundamental design flaw and it
1851 appears all over the place, not just in this one place. It's not
1852 clear what the correct solution is, but a thorough review of facets
1853 and traits is in order. The LWG considered and rejected the
1854 possibility of changing numeric facets to use narrowing instead of
1855 widening. This may be a good idea for other reasons (see issue
1856 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#459">459</a>), but it doesn't solve the problem raised by this
1857 issue. Whether we use widen or narrow the <tt>num_get</tt> facet
1858 still has no idea which traits class the user wants to use for
1859 the comparison, because only streams, not facets, are passed traits
1860 classes. The standard does not require that two different
1861 traits classes with the same <tt>char_type</tt> must necessarily
1862 have the same behavior.]</i></p>
1865 <p>Informally, one possibility: require that some of the basic
1866 character operations, such as <tt>eq</tt>, <tt>lt</tt>,
1867 and <tt>assign</tt>, must behave the same way for all traits classes
1868 with the same <tt>char_type</tt>. If we accept that limitation on
1869 traits classes, then the facet could reasonably be required to
1870 use <tt>char_traits<charT></tt>.</p>
1879 There was general agreement that the standard only needs to specify the
1880 behavior when the character type is char or wchar_t.
1883 Beman: we don't need to worry about C++1x because there is a non-zero
1884 possibility that we would have a replacement facility for iostreams that
1885 would solve these problems.
1888 We need to change the following sentence in [locale.category], paragraph
1889 6 to specify that C is char and wchar_t:
1892 "A template formal parameter with name C represents the set of all
1893 possible specializations on a parameter that satisfies the requirements
1894 for a character on which any member of the iostream components can be
1898 We also need to specify in 27 that the basic character operations, such
1899 as eq, lt, and assign use std::char_traits.
1902 Daniel volunteered to provide wording.
1907 2009-09-19 Daniel provided wording.
1917 Leave as Open. Alisdair and/or Tom will provide wording based on discussions.
1918 We want to clearly state that streams and locales work just on <tt>char</tt>
1919 and <tt>wchar_t</tt> (except where otherwise specified).
1924 <p><b>Proposed resolution:</b></p>
1928 Change 22.3.1.1.1 [locale.category]/6:
1932 [..] A template formal parameter with name <tt>C</tt> represents the set of all possible
1933 specializations on a <ins><tt>char</tt> or <tt>wchar_t</tt></ins> parameter<del> that satisfies
1934 the requirements for a character on which any of the iostream components
1935 can be instantiated</del>. [..]
1941 Add the following sentence to the end of 22.4.2 [category.numeric]/2:
1945 [..] These specializations refer to [..], and also for the <tt>ctype<></tt> facet to
1946 perform character classification. <ins>Implementations are encouraged
1947 but not required to use the <tt>char_traits<charT></tt> functions for all
1948 comparisons and assignments of characters of type <tt>charT</tt> that do
1949 not belong to the set of required specializations.</ins>
1955 Change 22.4.2.1.2 [facet.num.get.virtuals]/3:
1960 Stage 2: If <tt>in==end</tt> then stage 2 terminates. Otherwise a <tt>charT</tt> is taken
1961 from <tt>in</tt> and local variables are initialized as if by
1964 <blockquote><pre>char_type ct = *in;
1965 <ins>using tr = char_traits<char_type>;
1966 const char_type* pos = tr::find(atoms, sizeof(src) - 1, ct);</ins>
1967 char c = src[<del>find(atoms, atoms + sizeof(src) - 1, ct) - atoms</del>
1968 <ins>pos ? pos - atoms : sizeof(src) - 1</ins>];
1969 if (<ins>tr::eq(ct, </ins><del>ct == </del>use_facet<numpunct<charT>(loc).decimal_point()<ins>)</ins>)
1972 <ins>tr::eq(ct, </ins><del>ct == </del>use_facet<numpunct<charT>(loc).thousands_sep()<ins>)</ins>
1973 && use_facet<numpunct<charT> >(loc).grouping().length() != 0;
1977 where the values <tt>src</tt> and <tt>atoms</tt> are defined as if by: [..]
1982 [Remark of the author: I considered to replace the initialization
1983 "<tt>char_type ct = *in;</tt>"
1984 by the sequence "<tt>char_type ct; tr::assign(ct, *in);</tt>", but decided
1986 it is a copy-initialization context, not an assignment]
1992 Add the following sentence to the end of 22.4.5 [category.time]/1:
1996 [..] Their members use [..] , to determine formatting details.
1997 <ins>Implementations are encouraged but not required to use the
1998 <tt>char_traits<charT></tt> functions for all comparisons and assignments
1999 of characters of type <tt>charT</tt> that do
2000 not belong to the set of required specializations.</ins>
2006 Change 22.4.5.1.1 [locale.time.get.members]/8 bullet 4:
2011 <del>The next element of <tt>fmt</tt> is equal to <tt>'%'</tt></del> <ins>For the next element <tt>c</tt>
2012 of <tt>fmt char_traits<char_type>::eq(c, use_facet<ctype<char_type>>(f.getloc()).widen('%')) == true</tt></ins>,
2020 Add the following sentence to the end of 22.4.6 [category.monetary]/2:
2024 Their members use [..] to determine formatting details.
2025 <ins>Implementations are encouraged but not required to use the
2026 <tt>char_traits<charT></tt> functions for all comparisons and assignments
2027 of characters of type <tt>charT</tt> that do
2028 not belong to the set of required specializations.</ins>
2034 Change 22.4.6.1.2 [locale.money.get.virtuals]/4:
2039 [..] The value <tt>units</tt> is produced as if by:
2042 <blockquote><pre>for (int i = 0; i < n; ++i)
2043 buf2[i] = src[<ins>char_traits<charT>::</ins>find(atoms, <del>atoms+</del>sizeof(src), buf1[i]) - atoms];
2045 sscanf(buf2, "%Lf", &units);
2052 Change 22.4.6.2.2 [locale.money.put.virtuals]/1:
2056 [..] for character buffers <tt>buf1</tt> and <tt>buf2</tt>. If <ins>for</ins> the first
2057 character <ins><tt>c</tt></ins>
2058 in <tt>digits</tt> or <tt>buf2</tt> <del>is equal to
2059 <tt>ct.widen('-')</tt></del><ins><tt>char_traits<charT>::eq(c,
2060 ct.widen('-')) == true</tt></ins>, [..]
2066 Add a footnote to the first sentence of 27.7.1.2.2 [istream.formatted.arithmetic]/1:
2071 As in the case of the inserters, these extractors depend on the locale's
2072 <tt>num_get<></tt> (22.4.2.1) object to perform parsing the input stream
2073 data.<ins><sup>(footnote)</sup></ins> [..]
2078 <sup>footnote)</sup> If the traits of the input stream has different semantics for <tt>lt()</tt>,
2079 <tt>eq()</tt>, and <tt>assign()</tt> than <tt>char_traits<char_type></tt>, this may give surprising
2088 Add a footnote to the second sentence of 27.7.2.6.2 [ostream.inserters.arithmetic]/1:
2093 <i>Effects:</i> The classes <tt>num_get<></tt> and
2094 <tt>num_put<></tt> handle locale-dependent numeric formatting and
2095 parsing. These inserter functions use the imbued locale value to perform
2096 numeric formatting.<ins><sup>(footnote)</sup></ins> [..]
2101 <sup>footnote)</sup> If the traits of the output stream has different semantics for <tt>lt()</tt>,
2102 <tt>eq()</tt>, and <tt>assign()</tt> than <tt>char_traits<char_type></tt>, this may give surprising
2111 Add a footnote after the first sentence of 27.7.4 [ext.manip]/4:
2116 <i>Returns:</i> An object of unspecified type such that if in is an object of type
2117 <tt>basic_istream<charT, traits></tt> then the expression <tt>in >> get_money(mon, intl)</tt>
2118 behaves as if it called <tt>f(in, mon, intl)</tt>, where the function <tt>f</tt> is defined
2119 as:<ins><sup>(footnote)</sup></ins> [..]
2124 <sup>footnote)</sup> If the traits of the input stream has different semantics for <tt>lt()</tt>,
2125 <tt>eq()</tt>, and <tt>assign()</tt> than <tt>char_traits<char_type></tt>, this may give surprising
2134 Add a footnote after the first sentence of 27.7.4 [ext.manip]/5:
2139 <i>Returns:</i> An object of unspecified type such that if <tt>out</tt> is an object of type
2140 <tt>basic_ostream<charT, traits></tt> then the expression <tt>out << put_money(mon, intl)</tt>
2141 behaves as a formatted input function that calls <tt>f(out, mon, intl)</tt>, where the
2142 function <tt>f</tt> is defined as:<ins><sup>(footnote)</sup></ins> [..]
2147 <sup>footnote)</sup> If the traits of the output stream has different semantics for <tt>lt()</tt>,
2148 <tt>eq()</tt>, and <tt>assign()</tt> than <tt>char_traits<char_type></tt>, this may give surprising
2157 13) Add a footnote after the first sentence of 27.7.4 [ext.manip]/8:
2162 <i>Returns:</i> An object of unspecified type such that if <tt>in</tt> is an
2163 object of type b<tt>asic_istream<charT, traits></tt> then the expression
2164 <tt>in >>get_time(tmb, fmt)</tt> behaves as if it called <tt>f(in, tmb, fmt)</tt>,
2165 where the function <tt>f</tt> is defined as:<ins><sup>(footnote)</sup></ins> [..]
2170 <sup>footnote)</sup> If the traits of the input stream has different semantics for <tt>lt()</tt>,
2171 <tt>eq()</tt>, and <tt>assign()</tt> than <tt>char_traits<char_type></tt>, this may give surprising
2180 Add a footnote after the first sentence of 27.7.4 [ext.manip]/10:
2185 Returns: An object of unspecified type such that if <tt>out</tt> is an object of type
2186 <tt>basic_ostream<charT, traits></tt> then the expression <tt>out <<put_time(tmb, fmt)</tt>
2187 behaves as if it called <tt>f(out, tmb, fmt)</tt>, where the function <tt>f</tt> is defined
2188 as:<ins><sup>(footnote)</sup></ins> [..]
2193 <sup>footnote)</sup> If the traits of the output stream has different semantics for <tt>lt()</tt>,
2194 <tt>eq()</tt>, and <tt>assign()</tt> than <tt>char_traits<char_type></tt>, this may give surprising
2207 <h3><a name="430"></a>430. valarray subset operations</h3>
2208 <p><b>Section:</b> 26.6.2.4 [valarray.sub] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
2209 <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2003-09-18 <b>Last modified:</b> 2009-11-04</p>
2210 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
2211 <p><b>Discussion:</b></p>
2213 The standard fails to specify the behavior of valarray::operator[](slice)
2214 and other valarray subset operations when they are passed an "invalid"
2215 slice object, i.e., either a slice that doesn't make sense at all (e.g.,
2216 slice (0, 1, 0) or one that doesn't specify a valid subset of the valarray
2217 object (e.g., slice (2, 1, 1) for a valarray of size 1).
2219 <p><i>[Kona: the LWG believes that invalid slices should invoke
2220 undefined behavior. Valarrays are supposed to be designed for high
2221 performance, so we don't want to require specific checking. We
2222 need wording to express this decision.]</i></p>
2231 Please note that the standard also fails to specify the behavior of
2232 slice_array and gslice_array in the valid case. Bill Plauger will
2233 endeavor to provide revised wording for slice_array and gslice_array.
2237 post-Bellevue: Bill provided wording.
2253 2009-11-04 Pete opens:
2258 The resolution to LWG issue 430 has not been applied --- there have been
2259 changes to the underlying text, and the resolution needs to be reworked.
2264 <p><b>Proposed resolution:</b></p>
2266 Insert after 26.6.2.4 [valarray.sub], paragraph 1:
2271 The member operator is overloaded to provide several ways to select
2273 of elements from among those controlled by <tt>*this</tt>. The first group of five
2274 member operators work in conjunction with various overloads of <tt>operator=</tt>
2275 (and other assigning operators) to allow selective replacement (slicing) of
2276 the controlled sequence. The selected elements must exist.
2279 The first member operator selects element off. For example:
2282 <blockquote><pre>valarray<char> v0("abcdefghijklmnop", 16);
2284 // v0 == valarray<char>("abcAefghijklmnop", 16)
2288 The second member operator selects those elements of the controlled sequence
2289 designated by <tt>slicearr</tt>. For example:
2292 <blockquote><pre>valarray<char> v0("abcdefghijklmnop", 16);
2293 valarray<char> v1("ABCDE", 5);
2294 v0[slice(2, 5, 3)] = v1;
2295 // v0 == valarray<char>("abAdeBghCjkDmnEp", 16)
2299 The third member operator selects those elements of the controlled sequence
2300 designated by <tt>gslicearr</tt>. For example:
2303 <blockquote><pre>valarray<char> v0("abcdefghijklmnop", 16);
2304 valarray<char> v1("ABCDEF", 6);
2305 const size_t lv[] = {2, 3};
2306 const size_t dv[] = {7, 2};
2307 const valarray<size_t> len(lv, 2), str(dv, 2);
2308 v0[gslice(3, len, str)] = v1;
2309 // v0 == valarray<char>("abcAeBgCijDlEnFp", 16)
2313 The fourth member operator selects those elements of the controlled sequence
2314 designated by <tt>boolarr</tt>. For example:
2317 <blockquote><pre>valarray<char> v0("abcdefghijklmnop", 16);
2318 valarray<char> v1("ABC", 3);
2319 const bool vb[] = {false, false, true, true, false, true};
2320 v0[valarray<bool>(vb, 6)] = v1;
2321 // v0 == valarray<char>("abABeCghijklmnop", 16)
2325 The fifth member operator selects those elements of the controlled sequence
2326 designated by indarr. For example:
2329 <blockquote><pre>valarray<char> v0("abcdefghijklmnop", 16);
2330 valarray<char> v1("ABCDE", 5);
2331 const size_t vi[] = {7, 5, 2, 3, 8};
2332 v0[valarray<size_t>(vi, 5)] = v1;
2333 // v0 == valarray<char>("abCDeBgAEjklmnop", 16)
2337 The second group of five member operators each construct an object that
2338 represents the value(s) selected. The selected elements must exist.
2342 The sixth member operator returns the value of element off. For example:
2345 <blockquote><pre>valarray<char> v0("abcdefghijklmnop", 16);
2346 // v0[3] returns 'd'
2350 The seventh member operator returns an object of class <tt>valarray<Ty></tt>
2351 containing those elements of the controlled sequence designated by <tt>slicearr</tt>.
2355 <blockquote><pre>valarray<char> v0("abcdefghijklmnop", 16);
2356 // v0[slice(2, 5, 3)] returns valarray<char>("cfilo", 5)
2360 The eighth member operator selects those elements of the controlled sequence
2361 designated by <tt>gslicearr</tt>. For example:
2364 <blockquote><pre>valarray<char> v0("abcdefghijklmnop", 16);
2365 const size_t lv[] = {2, 3};
2366 const size_t dv[] = {7, 2};
2367 const valarray<size_t> len(lv, 2), str(dv, 2);
2368 // v0[gslice(3, len, str)] returns
2369 // valarray<char>("dfhkmo", 6)
2373 The ninth member operator selects those elements of the controlled sequence
2374 designated by <tt>boolarr</tt>. For example:
2377 <blockquote><pre>valarray<char> v0("abcdefghijklmnop", 16);
2378 const bool vb[] = {false, false, true, true, false, true};
2379 // v0[valarray<bool>(vb, 6)] returns
2380 // valarray<char>("cdf", 3)
2384 The last member operator selects those elements of the controlled sequence
2385 designated by <tt>indarr</tt>. For example:
2388 <blockquote><pre>valarray<char> v0("abcdefghijklmnop", 16);
2389 const size_t vi[] = {7, 5, 2, 3, 8};
2390 // v0[valarray<size_t>(vi, 5)] returns
2391 // valarray<char>("hfcdi", 5)
2401 <h3><a name="446"></a>446. Iterator equality between different containers</h3>
2402 <p><b>Section:</b> 24.2 [iterator.requirements], 23.2 [container.requirements] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
2403 <b>Submitter:</b> Andy Koenig <b>Opened:</b> 2003-12-16 <b>Last modified:</b> 2009-11-03</p>
2404 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#iterator.requirements">active issues</a> in [iterator.requirements].</p>
2405 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#iterator.requirements">issues</a> in [iterator.requirements].</p>
2406 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
2407 <p><b>Discussion:</b></p>
2409 What requirements does the standard place on equality comparisons between
2410 iterators that refer to elements of different containers. For example, if
2411 v1 and v2 are empty vectors, is v1.end() == v2.end() allowed to yield true?
2412 Is it allowed to throw an exception?
2416 The standard appears to be silent on both questions.
2418 <p><i>[Sydney: The intention is that comparing two iterators from
2419 different containers is undefined, but it's not clear if we say that,
2420 or even whether it's something we should be saying in clause 23 or in
2421 clause 24. Intuitively we might want to say that equality is defined
2422 only if one iterator is reachable from another, but figuring out how
2423 to say it in any sensible way is a bit tricky: reachability is defined
2424 in terms of equality, so we can't also define equality in terms of
2435 Daniel volunteered to work on this.
2439 2009-09-20 Daniel provided wording.
2449 Leave as Open. Alisdair has volunteered to refine the wording.
2454 <p><b>Proposed resolution:</b></p>
2456 Insert a new paragraph between 24.2 [iterator.requirements]/7+8:
2461 [..] The result of the application of functions in the library to invalid
2462 ranges is undefined.
2465 <p><ins>The result of directly or indirectly evaluating any comparison function
2466 or the binary - operator with two iterator values as arguments that
2468 from two different ranges <tt>r1</tt> and <tt>r2</tt> (including their past-the-end values) which
2469 are not subranges of one common range is undefined, unless explicitly
2470 described otherwise.</ins>
2481 <h3><a name="471"></a>471. result of what() implementation-defined</h3>
2482 <p><b>Section:</b> 18.8.1 [exception] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
2483 <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2004-06-28 <b>Last modified:</b> 2009-10-26</p>
2484 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
2485 <p><b>Discussion:</b></p>
2487 <p>[lib.exception] specifies the following:</p>
2488 <pre> exception (const exception&) throw();
2489 exception& operator= (const exception&) throw();
2491 -4- Effects: Copies an exception object.
2492 -5- Notes: The effects of calling what() after assignment
2493 are implementation-defined.
2497 First, does the Note only apply to the assignment operator? If so,
2498 what are the effects of calling what() on a copy of an object? Is
2499 the returned pointer supposed to point to an identical copy of
2500 the NTBS returned by what() called on the original object or not?
2504 Second, is this Note intended to extend to all the derived classes
2505 in section 19? I.e., does the standard provide any guarantee for
2506 the effects of what() called on a copy of any of the derived class
2507 described in section 19?
2511 Finally, if the answer to the first question is no, I believe it
2512 constitutes a defect since throwing an exception object typically
2513 implies invoking the copy ctor on the object. If the answer is yes,
2514 then I believe the standard ought to be clarified to spell out
2515 exactly what the effects are on the copy (i.e., after the copy
2519 <p><i>[Redmond: Yes, this is fuzzy. The issue of derived classes is
2524 Batavia: Howard provided wording.
2535 Eric concerned this is unimplementable, due to nothrow guarantees.
2536 Suggested implementation would involve reference counting.
2539 Is the implied reference counting subtle enough to call out a note on
2540 implementation? Probably not.
2543 If reference counting required, could we tighten specification further
2544 to require same pointer value? Probably an overspecification, especially
2545 if exception classes defer evalutation of final string to calls to
2549 Remember issue moved open and not resolved at Batavia, but cannot
2550 remember who objected to canvas a disenting opinion - please speak up if
2551 you disagree while reading these minutes!
2554 Move to Ready as we are accepting words unmodified.
2564 The issue was pulled from Ready. It needs to make clear that only homogenous copying
2565 is intended to be supported, not coping from a derived to a base.
2574 Howard supplied the following replacement wording
2575 for paragraph 7 of the proposed resolution:
2578 <ins>-7- <i>Postcondition:</i> <tt>what()</tt> shall return the same NTBS
2579 as would be obtained by using <tt>static_cast</tt>
2580 to cast the rhs to the same types as the lhs
2581 and then calling <tt>what()</tt> on that possibly sliced object.</ins>
2584 Pete asks what "the same NTBS" means.
2589 2009-07-30 Niels adds:
2594 Further discussion in the thread starting with c++std-lib-24512.
2598 2009-09-24 Niels provided updated wording:
2604 I think the resolution should at least guarantee
2605 that the result of <tt>what()</tt> is independent of whether the compiler does
2606 copy-elision. And for any class derived from <tt>std::excepion</tt> that has a
2607 constructor that allows specifying a <tt>what_arg</tt>, it should make sure that
2608 the text of a user-provided <tt>what_arg</tt> is preserved, when the object is
2609 copied. Note that all the implementations I've tested already appear to
2610 satisfy the proposed resolution, including MSVC 2008 SP1, Apache
2611 stdcxx-4.2.1, GCC 4.1.2, GCC 4.3.2, and CodeGear C++ 6.13.
2614 The proposed resolution was updated with help from Daniel Krügler;
2615 the update aims to clarify that the proposed postcondition only
2616 applies to homogeneous copying.
2626 Moved to Ready after inserting "publicly accessible" in two places.
2631 <p><b>Proposed resolution:</b></p>
2634 Change 18.8.1 [exception] to:
2639 -1- The class <tt>exception</tt> defines the base class for the types of
2640 objects thrown as exceptions by C++ standard library components, and
2641 certain expressions, to report errors detected during program execution.
2644 Each standard library class <tt>T</tt> that derives from class
2645 <tt>exception</tt> shall have a publicly accessible copy constructor and a publicly accessible copy assignment
2646 operator that do not exit with an exception. These member functions
2647 shall preserve the following postcondition: If two objects <i>lhs</i>
2648 and <i>rhs</i> both have dynamic type <tt>T</tt>, and <i>lhs</i> is a
2649 copy of <i>rhs</i>, then <tt>strcmp(<i>lhs</i>.what(),
2650 <i>rhs</i>.what()) == 0</tt>.
2656 <pre>exception(const exception& <ins>rhs</ins>) throw();
2657 exception& operator=(const exception& <ins>rhs</ins>) throw();</pre>
2661 -4- <i>Effects:</i> Copies an exception object.
2664 <del> -5- <i>Remarks:</i> The effects of calling <tt>what()</tt> after assignment
2665 are implementation-defined.</del>
2668 <ins>-5- <i>Postcondition:</i>
2670 and <i>rhs</i> both have dynamic type <tt>exception</tt>
2671 then <tt>strcmp(what(), <i>rhs</i>.what()) == 0</tt>.</ins>
2683 <h3><a name="473"></a>473. underspecified ctype calls</h3>
2684 <p><b>Section:</b> 22.4.1.1 [locale.ctype] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
2685 <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2004-07-01 <b>Last modified:</b> 2009-10-21</p>
2686 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
2687 <p><b>Discussion:</b></p>
2689 Most ctype member functions come in two forms: one that operates
2690 on a single character at a time and another form that operates
2691 on a range of characters. Both forms are typically described by
2692 a single Effects and/or Returns clause.
2695 The Returns clause of each of the single-character non-virtual forms
2696 suggests that the function calls the corresponding single character
2697 virtual function, and that the array form calls the corresponding
2698 virtual array form. Neither of the two forms of each virtual member
2699 function is required to be implemented in terms of the other.
2702 There are three problems:
2705 1. One is that while the standard does suggest that each non-virtual
2706 member function calls the corresponding form of the virtual function,
2707 it doesn't actually explicitly require it.
2710 Implementations that cache results from some of the virtual member
2711 functions for some or all values of their arguments might want to
2712 call the array form from the non-array form the first time to fill
2713 the cache and avoid any or most subsequent virtual calls. Programs
2714 that rely on each form of the virtual function being called from
2715 the corresponding non-virtual function will see unexpected behavior
2716 when using such implementations.
2719 2. The second problem is that either form of each of the virtual
2720 functions can be overridden by a user-defined function in a derived
2721 class to return a value that is different from the one produced by
2722 the virtual function of the alternate form that has not been
2726 Thus, it might be possible for, say, ctype::widen(c) to return one
2727 value, while for ctype::widen(&c, &c + 1, &wc) to set
2728 wc to another value. This is almost certainly not intended. Both
2729 forms of every function should be required to return the same result
2730 for the same character, otherwise the same program using an
2731 implementation that calls one form of the functions will behave
2732 differently than when using another implementation that calls the
2733 other form of the function "under the hood."
2736 3. The last problem is that the standard text fails to specify whether
2737 one form of any of the virtual functions is permitted to be implemented
2738 in terms of the other form or not, and if so, whether it is required
2739 or permitted to call the overridden virtual function or not.
2742 Thus, a program that overrides one of the virtual functions so that
2743 it calls the other form which then calls the base member might end
2744 up in an infinite loop if the called form of the base implementation
2745 of the function in turn calls the other form.
2748 Lillehammer: Part of this isn't a real problem. We already talk about
2749 caching. 22.1.1/6 But part is a real problem. ctype virtuals may call
2750 each other, so users don't know which ones to override to avoid avoid
2753 <p>This is a problem for all facet virtuals, not just ctype virtuals,
2754 so we probably want a blanket statement in clause 22 for all
2755 facets. The LWG is leaning toward a blanket prohibition, that a
2756 facet's virtuals may never call each other. We might want to do that
2757 in clause 27 too, for that matter. A review is necessary. Bill will
2758 provide wording.</p>
2761 2009-07 Frankfurt, Howard provided wording directed by consensus.
2776 <p><b>Proposed resolution:</b></p>
2778 Add paragraph 3 to 22.4 [locale.categories]:
2782 -3- Within this clause it is unspecified if one virtual function calls another
2788 <p><b>Rationale:</b></p>
2790 We are explicitly not addressing bullet
2791 item #2, thus giving implementors more latitude. Users will have to
2792 override both virtual functions, not just one.
2799 <h3><a name="485"></a>485. output iterator insufficiently constrained</h3>
2800 <p><b>Section:</b> 24.2.2 [output.iterators] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
2801 <b>Submitter:</b> Chris Jefferson <b>Opened:</b> 2004-10-13 <b>Last modified:</b> 2009-10-26</p>
2802 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#output.iterators">issues</a> in [output.iterators].</p>
2803 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
2804 <p><b>Discussion:</b></p>
2806 The note on 24.1.2 Output iterators insufficiently limits what can be
2807 performed on output iterators. While it requires that each iterator is
2808 progressed through only once and that each iterator is written to only
2809 once, it does not require the following things:</p>
2811 <p>Note: Here it is assumed that x is an output iterator of type X which
2812 has not yet been assigned to.</p>
2814 <p>a) That each value of the output iterator is written to:
2815 The standard allows:
2820 b) That assignments to the output iterator are made in order
2821 X a(x); ++a; *a=1; *x=2; is allowed
2825 c) Chains of output iterators cannot be constructed:
2826 X a(x); ++a; X b(a); ++b; X c(b); ++c; is allowed, and under the current
2827 wording (I believe) x,a,b,c could be written to in any order.
2830 <p>I do not believe this was the intension of the standard?</p>
2831 <p><i>[Lillehammer: Real issue. There are lots of constraints we
2832 intended but didn't specify. Should be solved as part of iterator
2842 Bill provided wording according to consensus.
2846 2009-07-21 Alisdair requests change from Review to Open. See thread starting
2847 with c++std-lib-24459 for discussion.
2857 Modified wording. Set to Review.
2866 Move to Ready after looking at again in a larger group in Santa Cruz.
2871 <p><b>Proposed resolution:</b></p>
2873 Change Table 101 — Output iterator requirements in 24.2.2 [output.iterators]:
2877 <caption>Table 101 — Output iterator requirements</caption>
2880 <th>Return type</th>
2881 <th>Operational semantics</th>
2882 <th>Assertion/note pre-/post-condition</th>
2896 <tt>a = t</tt> is equivalent to <tt>X(a) = t</tt>. note: a destructor is assumed.
2902 <tt>X u(a);</tt><br>
2928 Post: <tt>r</tt> is not required to be dereferenceable. <tt>r</tt> is incrementable.
2944 <tt>&r == &++r</tt>
2946 Post: <tt>r</tt> is dereferenceable, unless otherwise specified. <tt>r</tt> is not required to be incrementable.
2956 convertible to <tt>const X&</tt>
2959 <tt>{X tmp = r;<br>++r;<br>return tmp;}</tt>
2963 Post: <tt>r</tt> is dereferenceable, unless otherwise specified. <tt>r</tt> is not required to be incrementable.
2991 <h3><a name="539"></a>539. partial_sum and adjacent_difference should mention requirements</h3>
2992 <p><b>Section:</b> 26.7.3 [partial.sum] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
2993 <b>Submitter:</b> Marc Schoolderman <b>Opened:</b> 2006-02-06 <b>Last modified:</b> 2009-10-24</p>
2994 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
2995 <p><b>Discussion:</b></p>
2997 There are some problems in the definition of partial_sum and
2998 adjacent_difference in 26.4 [lib.numeric.ops]
3002 Unlike <tt>accumulate</tt> and <tt>inner_product</tt>, these functions are not
3003 parametrized on a "type T", instead, 26.4.3 [lib.partial.sum] simply
3004 specifies the effects clause as;
3008 Assigns to every element referred to by iterator <tt>i</tt> in the range
3009 <tt>[result,result + (last - first))</tt> a value correspondingly equal to
3011 <blockquote><pre>((...(* first + *( first + 1)) + ...) + *( first + ( i - result )))
3016 And similarly for BinaryOperation. Using just this definition, it seems
3017 logical to expect that:
3021 <blockquote><pre>char i_array[4] = { 100, 100, 100, 100 };
3024 std::partial_sum(i_array, i_array+4, o_array);
3031 <blockquote><pre>int o_array[4] = { 100, 100+100, 100+100+100, 100+100+100+100 };
3035 i.e. 100, 200, 300, 400, with addition happening in the <tt>result type</tt>,
3040 Yet all implementations I have tested produce 100, -56, 44, -112,
3041 because they are using an accumulator of the <tt>InputIterator</tt>'s
3042 <tt>value_type</tt>, which in this case is <tt>char</tt>, not <tt>int</tt>.
3046 The issue becomes more noticeable when the result of the expression <tt>*i +
3047 *(i+1)</tt> or <tt>binary_op(*i, *i-1)</tt> can't be converted to the
3048 <tt>value_type</tt>. In a contrived example:
3051 <blockquote><pre>enum not_int { x = 1, y = 2 };
3053 not_int e_array[4] = { x, x, y, y };
3054 std::partial_sum(e_array, e_array+4, o_array);
3058 Is it the intent that the operations happen in the <tt>input type</tt>, or in
3059 the <tt>result type</tt>?
3063 If the intent is that operations happen in the <tt>result type</tt>, something
3064 like this should be added to the "Requires" clause of 26.4.3/4
3069 The type of <tt>*i + *(i+1)</tt> or <tt>binary_op(*i, *(i+1))</tt> shall meet the
3070 requirements of <tt>CopyConstructible</tt> (20.1.3) and <tt>Assignable</tt>
3075 (As also required for <tt>T</tt> in 26.4.1 [lib.accumulate] and 26.4.2
3076 [lib.inner.product].)
3080 The "auto initializer" feature proposed in
3081 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1894.pdf">N1894</a>
3083 implement <tt>partial_sum</tt> this way. The 'narrowing' behaviour can still be
3084 obtained by using the <tt>std::plus<></tt> function object.
3088 If the intent is that operations happen in the <tt>input type</tt>, then
3089 something like this should be added instead;
3093 The type of *first shall meet the requirements of
3094 <tt>CopyConstructible</tt> (20.1.3) and <tt>Assignable</tt> (23.1) types.
3095 The result of <tt>*i + *(i+1)</tt> or <tt>binary_op(*i, *(i+1))</tt> shall be
3096 convertible to this type.
3100 The 'widening' behaviour can then be obtained by writing a custom proxy
3101 iterator, which is somewhat involved.
3105 In both cases, the semantics should probably be clarified.
3109 26.4.4 [lib.adjacent.difference] is similarly underspecified, although
3110 all implementations seem to perform operations in the 'result' type:
3113 <blockquote><pre>unsigned char i_array[4] = { 4, 3, 2, 1 };
3116 std::adjacent_difference(i_array, i_array+4, o_array);
3120 o_array is 4, -1, -1, -1 as expected, not 4, 255, 255, 255.
3124 In any case, <tt>adjacent_difference</tt> doesn't mention the requirements on the
3125 <tt>value_type</tt>; it can be brought in line with the rest of 26.4
3126 [lib.numeric.ops] by adding the following to 26.4.4/2
3127 [lib.adjacent.difference]:
3131 The type of <tt>*first</tt> shall meet the requirements of
3132 <tt>CopyConstructible</tt> (20.1.3) and <tt>Assignable</tt> (23.1) types."
3135 Berlin: Giving output iterator's value_types very controversial. Suggestion of
3136 adding signatures to allow user to specify "accumulator".
3146 The intent of the algorithms is to perform their calculations using the type of the input iterator.
3147 Proposed wording provided.
3156 We did not agree that the proposed resolution was correct. For example,
3157 when the arguments are types <tt>(float*, float*, double*)</tt>, the
3158 highest-quality solution would use double as the type of the
3159 accumulator. If the intent of the wording is to require that the type of
3160 the accumulator must be the <tt>input_iterator</tt>'s <tt>value_type</tt>, the wording
3165 2009-05-09 Alisdair adds:
3171 Now that we have the facility, the 'best' accumulator type could probably be
3174 <blockquote><pre>std::common_type<InIter::value_type, OutIter::reference>::type
3177 This type would then have additional requirements of constructability and
3178 incrementability/assignability.
3181 If this extracting an accumulator type from a pair/set of iterators (with
3182 additional requirements on that type) is a problem for multiple functions,
3183 it might be worth extracting into a SharedAccumulator concept or similar.
3186 I'll go no further in writing up wording now, until the group gives a
3187 clearer indication of preferred direction.
3197 The proposed resolution isn't quite right. For example, "the type of
3198 *first" should be changed to "iterator::value_type" or similar. Daniel
3199 volunteered to correct the wording.
3203 2009-07-29 Daniel corrected wording.
3218 <p><b>Proposed resolution:</b></p>
3225 Change 26.7.3 [partial.sum]/1 as indicated:
3230 <i>Effects:</i> <ins>Let <tt>VT</tt> be <tt>InputIterator</tt>'s value type. For a nonempty range,
3231 initializes an accumulator <tt>acc</tt> of type <tt>VT</tt> with <tt>*first</tt> and performs
3232 <tt>*result = acc</tt>. For every iterator <tt>i</tt> in <tt>[first + 1, last)</tt> in order, <tt>acc</tt> is then
3233 modified by <tt>acc = acc + *i</tt> or <tt>acc = binary_op(acc, *i)</tt> and is assigned
3234 to <tt>*(result + (i - first))</tt>.</ins> <del>Assigns to every element referred to by
3235 iterator <tt>i</tt> in the range <tt>[result,result + (last - first))</tt> a value
3240 <blockquote><pre><del>
3241 ((...(*first + *(first + 1)) + ...) + *(first + (i - result)))
3242 </del></pre></blockquote>
3248 <blockquote><pre><del>
3249 binary_op(binary_op(...,
3250 binary_op(*first, *(first + 1)),...), *(first + (i - result)))
3251 </del></pre></blockquote>
3257 Change 26.7.3 [partial.sum]/3 as indicated:
3261 <i>Complexity:</i> Exactly <tt><ins>max(</ins>(last - first) - 1<ins>, 0)</ins></tt>
3263 of <tt><del>binary_op</del></tt><ins>the binary operation</ins>.
3269 Change 26.7.3 [partial.sum]/4 as indicated:
3273 <i>Requires:</i> <ins><tt>VT</tt> shall be constructible from the type of <tt>*first</tt>, the result of
3274 <tt>acc + *i</tt> or <tt>binary_op(acc, *i)</tt> shall be implicitly convertible to <tt>VT</tt>, and
3275 the result of the expression <tt>acc</tt> shall be writable to the <tt>result</tt>
3276 output iterator.</ins> In the ranges <tt>[first,last]</tt> and
3277 <tt>[result,result + (last - first)]</tt> [..]
3283 Change 26.7.4 [adjacent.difference]/1 as indicated:
3288 <i>Effects:</i> <ins>Let <tt>VT</tt> be <tt>InputIterator</tt>'s value type. For a nonempty range,
3289 initializes an accumulator <tt>acc</tt> of type <tt>VT</tt> with <tt>*first</tt> and performs
3290 <tt>*result = acc</tt>. For every iterator <tt>i</tt> in <tt>[first + 1, last)</tt> in order,
3292 value <tt>val</tt> of type <tt>VT</tt> with <tt>*i</tt>, assigns the result of <tt>val - acc</tt> or
3293 <tt>binary_op(val, acc)</tt>
3294 to <tt>*(result + (i - first))</tt> and modifies <tt>acc = std::move(val)</tt>.</ins>
3295 <del>Assigns to every element referred to by iterator <tt>i</tt> in the range
3297 result + (last - first))</tt> a value correspondingly equal to</del>
3300 <blockquote><pre><del>
3301 *(first + (i - result)) - *(first + (i - result) - 1)
3302 </del></pre></blockquote>
3308 <blockquote><pre><del>
3309 binary_op(*(first + (i - result)), *(first + (i - result) - 1)).
3310 </del></pre></blockquote>
3313 result gets the value of *first.</del>
3320 Change 26.7.4 [adjacent.difference]/2 as indicated:
3324 <i>Requires:</i> <ins><tt>VT</tt> shall be <tt>MoveAssignable</tt> ([moveassignable])
3326 constructible from the type of <tt>*first</tt>. The result
3327 of the expression <tt>acc</tt> and the result of the expression <tt>val - acc</tt> or
3328 <tt>binary_op(val, acc)</tt>
3329 shall be writable to the <tt>result</tt> output iterator.</ins> In the ranges
3330 <tt>[first,last]</tt> [..]
3336 Change 26.7.4 [adjacent.difference]/5 as indicated:
3340 <i>Complexity:</i> Exactly <tt><ins>max(</ins>(last - first) - 1<ins>, 0)</ins></tt>
3342 of <del><tt>binary_op</tt></del><ins>the binary operation</ins>.
3355 <h3><a name="556"></a>556. is Compare a BinaryPredicate?</h3>
3356 <p><b>Section:</b> 25.4 [alg.sorting] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Review">Review</a>
3357 <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2006-02-05 <b>Last modified:</b> 2009-10-25</p>
3358 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#alg.sorting">issues</a> in [alg.sorting].</p>
3359 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Review">Review</a> status.</p>
3360 <p><b>Discussion:</b></p>
3362 In 25, p8 we allow BinaryPredicates to return a type that's convertible
3363 to bool but need not actually be bool. That allows predicates to return
3364 things like proxies and requires that implementations be careful about
3365 what kinds of expressions they use the result of the predicate in (e.g.,
3366 the expression in if (!pred(a, b)) need not be well-formed since the
3367 negation operator may be inaccessible or return a type that's not
3368 convertible to bool).
3371 Here's the text for reference:
3374 ...if an algorithm takes BinaryPredicate binary_pred as its argument
3375 and first1 and first2 as its iterator arguments, it should work
3376 correctly in the construct if (binary_pred(*first1, first2)){...}.
3380 In 25.3, p2 we require that the Compare function object return true
3381 of false, which would seem to preclude such proxies. The relevant text
3385 Compare is used as a function object which returns true if the first
3386 argument is less than the second, and false otherwise...
3390 Portland: Jack to define "convertible to bool" such that short circuiting isn't
3396 2009-07-28 Reopened by Alisdair. No longer solved by concepts.
3406 Move to Review once wording received. Stefanus to send proposed wording.
3415 Move to Review once wording received. Stefanus to send proposed wording.
3419 2009-10-24 Stefanus supplied wording.
3424 Move to Review once wording received. Stefanus to send proposed wording.
3425 Current proposed wording proposed here:
3428 I think we could fix this by rewording 25.3, p2 to read somthing like:
3431 -2- <tt>Compare</tt> is <del>used as a function object which returns
3432 <tt>true</tt> if the first argument</del> <ins>a <tt>BinaryPredicate</tt>. The
3433 return value of the function call operator applied to an object of type
3434 <tt>Compare</tt>, when converted to type <tt>bool</tt>, yields <tt>true</tt>
3435 if the first argument of the call</ins> is less than the second, and
3436 <tt>false</tt> otherwise. <tt>Compare <i>comp</i></tt> is used throughout for
3437 algorithms assuming an ordering relation. It is assumed that <tt><i>comp</i></tt>
3438 will not apply any non-constant function through the dereferenced iterator.
3445 <p><b>Proposed resolution:</b></p>
3447 Change 25.4 [alg.sorting] p2:
3450 <tt>Compare</tt> is used as a function object<ins>. The return value of
3451 the function call operator applied to an object of type Compare, when
3452 converted to type bool, yields true if the first argument of the
3453 call</ins> <del>which returns <tt>true</tt> if the first argument</del>
3454 is less than the second, and <tt>false</tt> otherwise. <tt>Compare
3455 comp</tt> is used throughout for algorithms assuming an ordering
3456 relation. It is assumed that <tt>comp</tt> will not apply any
3457 non-constant function through the dereferenced iterator.
3461 <p><b>Rationale:</b></p>
3469 (<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2774.pdf">N2774</a>).
3478 <h3><a name="594"></a>594. Disadvantages of defining Swappable in terms of CopyConstructible and Assignable</h3>
3479 <p><b>Section:</b> 20.2.1 [utility.arg.requirements] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
3480 <b>Submitter:</b> Niels Dekker <b>Opened:</b> 2006-11-02 <b>Last modified:</b> 2009-11-08</p>
3481 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#utility.arg.requirements">active issues</a> in [utility.arg.requirements].</p>
3482 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#utility.arg.requirements">issues</a> in [utility.arg.requirements].</p>
3483 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
3484 <p><b>Discussion:</b></p>
3486 It seems undesirable to define the Swappable requirement in terms of
3487 CopyConstructible and Assignable requirements. And likewise, once the
3488 MoveConstructible and MoveAssignable requirements (N1860) have made it
3489 into the Working Draft, it seems undesirable to define the Swappable
3490 requirement in terms of those requirements. Instead, it appears
3491 preferable to have the Swappable requirement defined exclusively in
3492 terms of the existence of an appropriate swap function.
3495 Section 20.1.4 [lib.swappable] of the current Working Draft (N2009)
3499 The Swappable requirement is met by satisfying one or more of the
3500 following conditions:</p>
3503 T is Swappable if T satisfies the CopyConstructible requirements
3504 (20.1.3) and the Assignable requirements (23.1);
3507 T is Swappable if a namespace scope function named swap exists in the
3508 same namespace as the definition of T, such that the expression
3509 swap(t,u) is valid and has the semantics described in Table 33.
3514 I can think of three disadvantages of this definition:
3519 If a client's type T satisfies the first condition (T is both
3520 CopyConstructible and Assignable), the client cannot stop T from
3521 satisfying the Swappable requirement without stopping T from
3522 satisfying the first condition.
3525 A client might want to stop T from satisfying the Swappable
3526 requirement, because swapping by means of copy construction and
3527 assignment might throw an exception, and she might find a throwing
3528 swap unacceptable for her type. On the other hand, she might not feel
3529 the need to fully implement her own swap function for this type. In
3530 this case she would want to be able to simply prevent algorithms that
3531 would swap objects of type T from being used, e.g., by declaring a
3532 swap function for T, and leaving this function purposely undefined.
3533 This would trigger a link error, if an attempt would be made to use
3534 such an algorithm for this type. For most standard library
3535 implementations, this practice would indeed have the effect of
3536 stopping T from satisfying the Swappable requirement.
3541 A client's type T that does not satisfy the first condition can not be
3542 made Swappable by providing a specialization of std::swap for T.
3545 While I'm aware about the fact that people have mixed feelings about
3546 providing a specialization of std::swap, it is well-defined to do so.
3547 It sounds rather counter-intuitive to say that T is not Swappable, if
3548 it has a valid and semantically correct specialization of std::swap.
3549 Also in practice, providing such a specialization will have the same
3550 effect as satisfying the Swappable requirement.
3555 For a client's type T that satisfies both conditions of the Swappable
3556 requirement, it is not specified which of the two conditions prevails.
3557 After reading section 20.1.4 [lib.swappable], one might wonder whether
3558 objects of T will be swapped by doing copy construction and
3559 assignments, or by calling the swap function of T.
3562 I'm aware that the intention of the Draft is to prefer calling the
3563 swap function of T over doing copy construction and assignments. Still
3564 in my opinion, it would be better to make this clear in the wording of
3565 the definition of Swappable.
3570 I would like to have the Swappable requirement defined in such a way
3571 that the following code fragment will correctly swap two objects of a
3572 type T, if and only if T is Swappable:
3574 <pre> using std::swap;
3575 swap(t, u); // t and u are of type T.
3578 This is also the way Scott Meyers recommends calling a swap function,
3579 in Effective C++, Third Edition, item 25.
3582 Most aspects of this issue have been dealt with in a discussion on
3583 comp.std.c++ about the Swappable requirement, from 13 September to 4
3584 October 2006, including valuable input by David Abrahams, Pete Becker,
3585 Greg Herlihy, Howard Hinnant and others.
3594 Recommend NAD. Solved by
3595 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2774.pdf">N2774</a>.
3604 Moved to Open. Waiting for non-concepts draft.
3608 2009-11-08 Howard adds:
3613 This issue is very closely related to <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#742">742</a>.
3617 <p><b>Proposed resolution:</b></p>
3619 Change section 20.1.4 [lib.swappable] as follows:
3622 The Swappable requirement is met by satisfying
3623 <del>one or more of the following conditions:</del>
3624 <ins>the following condition:</ins></p>
3628 <del>T is Swappable if T satisfies the CopyConstructible requirements
3629 (20.1.3) and the Assignable requirements (23.1);</del>
3633 T is Swappable if a namespace scope function named swap exists in the
3634 same namespace as the definition of T, such that the expression
3635 swap(t,u) is valid and has the semantics described in Table 33.
3637 T is Swappable if an unqualified function call swap(t,u) is valid
3638 within the namespace std, and has the semantics described in Table 33.
3648 <h3><a name="625"></a>625. mixed up <i>Effects</i> and <i>Returns</i> clauses</h3>
3649 <p><b>Section:</b> 17 [library] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
3650 <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2007-01-20 <b>Last modified:</b> 2009-10-20</p>
3651 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#library">active issues</a> in [library].</p>
3652 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#library">issues</a> in [library].</p>
3653 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
3654 <p><b>Duplicate of:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#895">895</a></p>
3655 <p><b>Discussion:</b></p>
3658 Many member functions of <code>basic_string</code> are overloaded,
3659 with some of the overloads taking a <code>string</code> argument,
3660 others <code>value_type*</code>, others <code>size_type</code>, and
3661 others still <code>iterators</code>. Often, the requirements on one of
3662 the overloads are expressed in the form of <i>Effects</i>,
3663 <i>Throws</i>, and in the Working Paper
3664 (<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2134.pdf">N2134</a>)
3665 also <i>Remark</i> clauses, while those on the rest of the overloads
3666 via a reference to this overload and using a <i>Returns</i> clause.
3670 The difference between the two forms of specification is that per
3671 17.5.1.4 [structure.specifications], p3, an <i>Effects</i> clause specifies
3672 <i>"actions performed by the functions,"</i> i.e., its observable
3673 effects, while a <i>Returns</i> clause is <i>"a description of the
3674 return value(s) of a function"</i> that does not impose any
3675 requirements on the function's observable effects.
3679 Since only <i>Notes</i> are explicitly defined to be informative and
3680 all other paragraphs are explicitly defined to be normative, like
3681 <i>Effects</i> and <i>Returns</i>, the new <i>Remark</i> clauses also
3682 impose normative requirements.
3686 So by this strict reading of the standard there are some member
3687 functions of <code>basic_string</code> that are required to throw an
3688 exception under some conditions or use specific traits members while
3689 many other otherwise equivalent overloads, while obliged to return the
3690 same values, aren't required to follow the exact same requirements
3691 with regards to the observable effects.
3695 Here's an example of this problem that was precipitated by the change
3696 from informative Notes to normative <i>Remark</i>s (presumably made to
3697 address <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#424">424</a>):
3701 In the Working Paper, <code>find(string, size_type)</code> contains a
3702 <i>Remark</i> clause (which is just a <i>Note</i> in the current
3703 standard) requiring it to use <code>traits::eq()</code>.
3707 <code>find(const charT *s, size_type pos)</code> is specified to
3708 return <code>find(string(s), pos)</code> by a <i>Returns</i> clause
3709 and so it is not required to use <code>traits::eq()</code>. However,
3710 the Working Paper has replaced the original informative <i>Note</i>
3711 about the function using <code>traits::length()</code> with a
3712 normative requirement in the form of a <i>Remark</i>. Calling
3713 <code>traits::length()</code> may be suboptimal, for example when the
3714 argument is a very long array whose initial substring doesn't appear
3715 anywhere in <code>*this</code>.
3719 Here's another similar example, one that existed even prior to the
3720 introduction of <i>Remark</i>s:
3724 <code> insert(size_type pos, string, size_type, size_type)</code> is
3725 required to throw <code>out_of_range</code> if <code>pos >
3730 <code>insert(size_type pos, string str)</code> is specified to return
3731 <code>insert(pos, str, 0, npos)</code> by a <i>Returns</i> clause and
3732 so its effects when <code>pos > size()</code> are strictly speaking
3737 I believe a careful review of the current <i>Effects</i> and
3738 <i>Returns</i> clauses is needed in order to identify all such
3739 problematic cases. In addition, a review of the Working Paper should
3740 be done to make sure that the newly introduced normative <i>Remark</i>
3741 clauses do not impose any undesirable normative requirements in place
3742 of the original informative <i>Notes</i>.
3746 Batavia: Alan and Pete to work.
3751 Bellevue: Marked as NAD Editorial.
3756 Post-Sophia Antipolis:
3757 Martin indicates there is still work to be done on this issue.
3767 Tom proposes we say that, unless specified otherwise,
3768 it is always the caller's responsibility to verify that supplied arguments
3769 meet the called function's requirements.
3770 If further semantics are specified
3771 (e.g., that the function throws under certain conditions),
3772 then it is up to the implementer to check those conditions.
3773 Alan feels strongly that our current use of Requires in this context
3774 is confusing, especially now that <tt>requires</tt> is a new keyword.
3783 Move to Tentatively NAD.
3792 Move to Open. Martin will work on proposed wording.
3797 <p><b>Proposed resolution:</b></p>
3806 <h3><a name="631"></a>631. conflicting requirements for <tt>BinaryPredicate</tt></h3>
3807 <p><b>Section:</b> 25 [algorithms] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Review">Review</a>
3808 <b>Submitter:</b> James Kanze <b>Opened:</b> 2007-01-31 <b>Last modified:</b> 2009-10-24</p>
3809 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#algorithms">active issues</a> in [algorithms].</p>
3810 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#algorithms">issues</a> in [algorithms].</p>
3811 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Review">Review</a> status.</p>
3812 <p><b>Discussion:</b></p>
3814 The general requirements for <tt><tt>BinaryPredicate</tt></tt> (in 25 [algorithms]/8) contradict the implied specific requirements for
3815 some functions. In particular, it says that:
3819 [...] if an algorithm takes <tt>BinaryPredicate <i>binary_pred</i></tt>
3820 as its argument and <tt><i>first1</i></tt> and <i>first2</i> as its
3821 iterator arguments, it should work correctly in the construct <tt>if
3822 (binary_pred (*<i>first1</i> , *<i>first2</i> )){...}</tt>.
3823 <tt>BinaryPredicate</tt> always takes the first iterator type as its
3824 first argument, that is, in those cases when <tt>T <i>value</i></tt> is
3825 part of the signature, it should work correctly in the context of <tt>if
3826 (binary_pred (*<i>first1</i> , <i>value</i>)){...}</tt>.
3830 In the description of <tt>upper_bound</tt> (25.4.3.2 [upper.bound]/2), however, the use is described as
3831 "<tt>!comp(<i>value</i>, <i>e</i>)</tt>", where <tt><i>e</i></tt> is an
3832 element of the sequence (a result of dereferencing
3833 <tt>*<i>first</i></tt>).
3837 In the description of <tt>lexicographical_compare</tt>, we have both
3838 "<tt>*<i>first1</i> < *<i>first2</i></tt>" and "<tt>*<i>first2</i>
3839 < *<i>first1</i></tt>" (which presumably implies "<tt>comp(
3840 *<i>first1</i>, *<i>first2</i> )</tt>" and "<tt>comp( *<i>first2</i>,
3841 *<i>first1</i> )</tt>".
3845 Toronto: Moved to Open. ConceptGCC seems to get <tt>lower_bound</tt>
3846 and <tt>upper_bound</tt> to work withoutt these changes.
3851 2009-07-28 Reopened by Alisdair. No longer solved by concepts.
3861 Move to Review. The small problem with the "iterator type"
3862 will be fixed. The cited functions (<tt>lower_bound</tt>, <tt>uppwer_bound</tt>,
3863 <tt>equal_range</tt>) don't actually use <tt>BinaryPredicate</tt> , and where it is used,
3864 it is consistent with [algorithm]/8, so the main complaint of the issue
3870 <p><b>Proposed resolution:</b></p>
3872 Logically, the <tt>BinaryPredicate</tt> is used as an ordering
3873 relationship, with the semantics of "less than". Depending on the
3874 function, it may be used to determine equality, or any of the inequality
3875 relationships; doing this requires being able to use it with either
3876 parameter first. I would thus suggest that the requirement be:
3880 [...] <tt>BinaryPredicate</tt> always takes the first iterator
3881 <tt>value_type</tt> as one of its arguments, it is unspecified which. If
3882 an algorithm takes <tt>BinaryPredicate <i>binary_pred</i></tt> as its
3883 argument and <tt><i><i>first1</i></i></tt> and <i>first2</i> as its
3884 iterator arguments, it should work correctly both in the construct
3885 <tt>if (binary_pred (*<i>first1</i> , *<i>first2</i> )){...}</tt> and
3886 <tt>if (binary_pred (*<i>first2</i>, *<i>first1</i>)){...}</tt>. In
3887 those cases when <tt>T <i>value</i></tt> is part of the signature, it
3888 should work correctly in the context of <tt>if (binary_pred
3889 (*<i>first1</i> , <i>value</i>)){...}</tt> and of <tt>if (binary_pred
3890 (<i>value</i>, *<i>first1</i>)){...}</tt>. [<i>Note:</i> if the two
3891 types are not identical, and neither is convertable to the other, this
3892 may require that the <tt>BinaryPredicate</tt> be a functional object
3893 with two overloaded <tt>operator()()</tt> functions. <i>--end note</i>]
3897 Alternatively, one could specify an order for each function. IMHO, this
3898 would be more work for the committee, more work for the implementors,
3899 and of no real advantage for the user: some functions, such as
3900 <tt>lexicographical_compare</tt> or <tt>equal_range</tt>, will still require both
3901 functions, and it seems like a much easier rule to teach that both
3902 functions are always required, rather than to have a complicated list of
3903 when you only need one, and which one.
3907 <p><b>Rationale:</b></p>
3915 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2759.pdf">N2759</a>.
3924 <h3><a name="671"></a>671. precision of hexfloat</h3>
3925 <p><b>Section:</b> 22.4.2.2.2 [facet.num.put.virtuals] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
3926 <b>Submitter:</b> John Salmon <b>Opened:</b> 2007-04-20 <b>Last modified:</b> 2009-10-21</p>
3927 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#facet.num.put.virtuals">active issues</a> in [facet.num.put.virtuals].</p>
3928 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#facet.num.put.virtuals">issues</a> in [facet.num.put.virtuals].</p>
3929 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
3930 <p><b>Discussion:</b></p>
3932 I am trying to understand how TR1 supports hex float (%a) output.
3935 As far as I can tell, it does so via the following:
3938 8.15 Additions to header <locale> [tr.c99.locale]
3941 In subclause 22.4.2.2.2 [facet.num.put.virtuals], Table 58 Floating-point conversions, after
3943 floatfield == ios_base::scientific %E
3948 <blockquote><pre>floatfield == ios_base::fixed | ios_base::scientific && !uppercase %a
3949 floatfield == ios_base::fixed | ios_base::scientific %A 2
3952 [Note: The additional requirements on print and scan functions, later
3953 in this clause, ensure that the print functions generate hexadecimal
3954 floating-point fields with a %a or %A conversion specifier, and that
3955 the scan functions match hexadecimal floating-point fields with a %g
3956 conversion specifier. end note]
3959 Following the thread, in 22.4.2.2.2 [facet.num.put.virtuals], we find:
3962 For conversion from a floating-point type, if (flags & fixed) != 0 or
3963 if str.precision() > 0, then str.precision() is specified in the
3964 conversion specification.
3967 This would seem to imply that when floatfield == fixed|scientific, the
3968 precision of the conversion specifier is to be taken from
3969 str.precision(). Is this really what's intended? I sincerely hope
3970 that I'm either missing something or this is an oversight. Please
3971 tell me that the committee did not intend to mandate that hex floats
3972 (and doubles) should by default be printed as if by %.6a.
3976 Howard: I think the fundamental issue we overlooked was that with %f,
3977 %e, %g, the default precision was always 6. With %a the default
3978 precision is not 6, it is infinity. So for the first time, we need to
3979 distinguish between the default value of precision, and the precision
3991 Leave this open for Robert and Daniel to work on.
3994 Straw poll: Disposition?
3997 <li>Default is %.6a (i.e. NAD): 2</li>
3998 <li>Always %a (no precision): 6</li>
3999 <li>precision(-1) == %a: 3</li>
4002 Daniel and Robert have direction to write up wording for the "always %a" solution.
4006 2009-07-15 Robert provided wording.
4022 <p><b>Proposed resolution:</b></p>
4024 Change 22.4.2.2.2 [facet.num.put.virtuals], Stage 1, under p5 (near the end
4029 For conversion from a floating-point type, <tt>str.precision()</tt> is specified
4030 <ins>as precision</ins> in the conversion specification
4031 <ins>if <tt>floatfield != (ios_base::fixed | ios_base::scientific)</tt>, else no
4032 precision is specified</ins>.
4038 Kona (2007): Robert volunteers to propose wording.
4046 <h3><a name="676"></a>676. Moving the unordered containers</h3>
4047 <p><b>Section:</b> 23.5 [unord] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Review">Review</a>
4048 <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2007-05-05 <b>Last modified:</b> 2009-10-29</p>
4049 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#unord">issues</a> in [unord].</p>
4050 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Review">Review</a> status.</p>
4051 <p><b>Discussion:</b></p>
4053 Move semantics are missing from the <tt>unordered</tt> containers. The proposed
4054 resolution below adds move-support consistent with
4055 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1858.html">N1858</a>
4056 and the current working draft.
4060 The current proposed resolution simply lists the requirements for each function.
4061 These might better be hoisted into the requirements table for unordered associative containers.
4062 Futhermore a mild reorganization of the container requirements could well be in order.
4063 This defect report is purposefully ignoring these larger issues and just focusing
4064 on getting the unordered containers "moved".
4068 2009-07-28 Reopened by Alisdair. No longer solved by concepts.
4073 2009-10-17 Removed rvalue-swaps from wording.
4083 Move to Review. Alisdair will review proposed wording.
4087 2009-10-29 Daniel updates wording.
4093 <p><b>Proposed resolution:</b></p>
4095 <p><b><tt>unordered_map</tt></b></p>
4098 Change 23.5.1 [unord.map]:
4101 <blockquote><pre>class unordered_map
4104 unordered_map(const unordered_map&);
4105 <ins>unordered_map(unordered_map&&);</ins>
4107 unordered_map& operator=(const unordered_map&);
4108 <ins>unordered_map& operator=(unordered_map&&);</ins>
4111 <del>std::</del>pair<iterator, bool> insert(const value_type& obj);
4112 <ins>template <class P> pair<iterator, bool> insert(P&& obj);</ins>
4113 iterator insert(const_iterator hint, const value_type& obj);
4114 <ins>template <class P> iterator insert(const_iterator hint, P&& obj);</ins>
4116 mapped_type& operator[](const key_type& k);
4117 <ins>mapped_type& operator[](key_type&& k);</ins>
4124 Add to 23.5.1.1 [unord.map.cnstr]:
4128 <pre>template <class InputIterator>
4129 unordered_map(InputIterator f, InputIterator l,
4130 size_type n = <i>implementation-defined</i>,
4131 const hasher& hf = hasher(),
4132 const key_equal& eql = key_equal(),
4133 const allocator_type& a = allocator_type());
4138 <i>Requires:</i> If the iterator's dereference operator returns an
4139 lvalue or a const rvalue <tt>pair<key_type, mapped_type></tt>,
4140 then both <tt>key_type</tt> and <tt>mapped_type</tt> shall be
4141 <tt>CopyConstructible</tt>.
4147 Add to 23.5.1.2 [unord.map.elem]:
4152 <pre>mapped_type& operator[](const key_type& k);</pre>
4157 <i>Requires:</i> <tt>key_type</tt> shall be <tt>CopyConstructible</tt>
4158 and <tt>mapped_type</tt> shall be <tt>DefaultConstructible</tt>.
4162 <pre><ins>mapped_type& operator[](key_type&& k);</ins></pre>
4166 <i>Effects:</i> If the <tt>unordered_map</tt> does not already contain an
4167 element whose key is equivalent to <tt>k</tt> , inserts the value
4168 <tt>std::pair<const key_type, mapped_type>(std::move(k), mapped_type())</tt>.
4172 <i>Requires:</i> <tt>mapped_type</tt> shall be <tt>DefaultConstructible</tt>.
4176 <i>Returns:</i> A reference to <tt>x.second</tt>, where <tt>x</tt> is the
4177 (unique) element whose key is equivalent to <tt>k</tt>.
4185 Add new section [unord.map.modifiers]:
4189 <pre><ins>pair<iterator, bool> insert(const value_type& x);</ins>
4190 <ins>template <class P> pair<iterator, bool> insert(P&& x);</ins>
4191 <ins>iterator insert(const_iterator hint, const value_type& x);</ins>
4192 <ins>template <class P> iterator insert(const_iterator hint, P&& x);</ins>
4193 <ins>template <class InputIterator>
4194 void insert(InputIterator first, InputIterator last);</ins>
4199 <i>Requires:</i> Those signatures taking a <tt>const value_type&</tt> parameter
4200 requires both the <tt>key_type</tt> and the <tt>mapped_type</tt> to be
4201 <tt>CopyConstructible</tt>.
4202 If <tt>P</tt> is instantiated as a reference
4203 type, then the argument <tt>x</tt> is copied from. Otherwise <tt>x</tt>
4204 is considered to be an rvalue as it is converted to <tt>value_type</tt>
4205 and inserted into the <tt>unordered_map</tt>. Specifically, in such
4206 cases <tt>CopyConstructible</tt> is not required for <tt>key_type</tt> or
4207 <tt>mapped_type</tt> unless the conversion from <tt>P</tt> specifically
4208 requires it (e.g. if <tt>P</tt> is a <tt>tuple<const key_type,
4209 mapped_type></tt>, then <tt>key_type</tt> must be
4210 <tt>CopyConstructible</tt>).
4214 The signature taking <tt>InputIterator</tt>
4215 parameters requires <tt>CopyConstructible</tt> of both
4216 <tt>key_type</tt> and <tt>mapped_type</tt> if the dereferenced
4217 <tt>InputIterator</tt> returns an lvalue or <tt>const</tt> rvalue
4218 <tt>value_type</tt>.
4225 <p><b><tt>unordered_multimap</tt></b></p>
4228 Change 23.5.2 [unord.multimap]:
4231 <blockquote><pre>class unordered_multimap
4234 unordered_multimap(const unordered_multimap&);
4235 <ins>unordered_multimap(unordered_multimap&&);</ins>
4236 ~unordered_multimap();
4237 unordered_multimap& operator=(const unordered_multimap&);
4238 <ins>unordered_multimap& operator=(unordered_multimap&&);</ins>
4241 iterator insert(const value_type& obj);
4242 <ins>template <class P> iterator insert(P&& obj);</ins>
4243 iterator insert(const_iterator hint, const value_type& obj);
4244 <ins>template <class P> iterator insert(const_iterator hint, P&& obj);</ins>
4251 Add to 23.5.2.1 [unord.multimap.cnstr]:
4255 <pre>template <class InputIterator>
4256 unordered_multimap(InputIterator f, InputIterator l,
4257 size_type n = <i>implementation-defined</i>,
4258 const hasher& hf = hasher(),
4259 const key_equal& eql = key_equal(),
4260 const allocator_type& a = allocator_type());
4265 <i>Requires:</i> If the iterator's dereference operator returns an
4266 lvalue or a const rvalue <tt>pair<key_type, mapped_type></tt>,
4267 then both <tt>key_type</tt> and <tt>mapped_type</tt> shall be
4268 <tt>CopyConstructible</tt>.
4274 Add new section [unord.multimap.modifiers]:
4278 <pre><ins>iterator insert(const value_type& x);</ins>
4279 <ins>template <class P> iterator insert(P&& x);</ins>
4280 <ins>iterator insert(const_iterator hint, const value_type& x);</ins>
4281 <ins>template <class P> iterator insert(const_iterator hint, P&& x);</ins>
4282 <ins>template <class InputIterator>
4283 void insert(InputIterator first, InputIterator last);</ins>
4288 <i>Requires:</i> Those signatures taking a <tt>const value_type&</tt> parameter
4289 requires both the <tt>key_type</tt> and the <tt>mapped_type</tt> to be
4290 <tt>CopyConstructible</tt>.
4291 If <tt>P</tt> is instantiated as a reference
4292 type, then the argument <tt>x</tt> is copied from. Otherwise <tt>x</tt>
4293 is considered to be an rvalue as it is converted to <tt>value_type</tt>
4294 and inserted into the <tt>unordered_multimap</tt>. Specifically, in such
4295 cases <tt>CopyConstructible</tt> is not required for <tt>key_type</tt> or
4296 <tt>mapped_type</tt> unless the conversion from <tt>P</tt> specifically
4297 requires it (e.g. if <tt>P</tt> is a <tt>tuple<const key_type,
4298 mapped_type></tt>, then <tt>key_type</tt> must be
4299 <tt>CopyConstructible</tt>).
4303 The signature taking <tt>InputIterator</tt>
4304 parameters requires <tt>CopyConstructible</tt> of both
4305 <tt>key_type</tt> and <tt>mapped_type</tt> if the dereferenced
4306 <tt>InputIterator</tt> returns an lvalue or <tt>const</tt> rvalue
4307 <tt>value_type</tt>.
4313 <p><b><tt>unordered_set</tt></b></p>
4316 Change 23.5.3 [unord.set]:
4319 <blockquote><pre>class unordered_set
4322 unordered_set(const unordered_set&);
4323 <ins>unordered_set(unordered_set&&);</ins>
4325 unordered_set& operator=(const unordered_set&);
4326 <ins>unordered_set& operator=(unordered_set&&);</ins>
4329 <del>std::</del>pair<iterator, bool> insert(const value_type& obj);
4330 <ins>pair<iterator, bool> insert(value_type&& obj);</ins>
4331 iterator insert(const_iterator hint, const value_type& obj);
4332 <ins>iterator insert(const_iterator hint, value_type&& obj);</ins>
4338 Add to 23.5.3.1 [unord.set.cnstr]:
4342 <pre>template <class InputIterator>
4343 unordered_set(InputIterator f, InputIterator l,
4344 size_type n = <i>implementation-defined</i>,
4345 const hasher& hf = hasher(),
4346 const key_equal& eql = key_equal(),
4347 const allocator_type& a = allocator_type());
4352 <i>Requires:</i> If the iterator's dereference operator returns an
4353 lvalue or a const rvalue <tt>value_type</tt>, then the
4354 <tt>value_type</tt> shall be <tt>CopyConstructible</tt>.
4360 Add new section [unord.set.modifiers]:
4364 <pre><ins>pair<iterator, bool> insert(const value_type& x);</ins>
4365 <ins>pair<iterator, bool> insert(value_type&& x);</ins>
4366 <ins>iterator insert(const_iterator hint, const value_type& x);</ins>
4367 <ins>iterator insert(const_iterator hint, value_type&& x);</ins>
4368 <ins>template <class InputIterator>
4369 void insert(InputIterator first, InputIterator last);</ins>
4375 <i>Requires:</i> Those signatures taking a <tt>const
4376 value_type&</tt> parameter requires the <tt>value_type</tt> to
4377 be <tt>CopyConstructible</tt>.
4381 The signature taking <tt>InputIterator</tt> parameters requires
4382 <tt>CopyConstructible</tt> of <tt>value_type</tt> if the dereferenced
4383 <tt>InputIterator</tt> returns an lvalue or <tt>const</tt> rvalue
4384 <tt>value_type</tt>.
4391 <p><b><tt>unordered_multiset</tt></b></p>
4394 Change 23.5.4 [unord.multiset]:
4397 <blockquote><pre>class unordered_multiset
4400 unordered_multiset(const unordered_multiset&);
4401 <ins>unordered_multiset(unordered_multiset&&);</ins>
4402 ~unordered_multiset();
4403 unordered_multiset& operator=(const unordered_multiset&);
4404 <ins>unordered_multiset& operator=(unordered_multiset&&);</ins>
4407 iterator insert(const value_type& obj);
4408 <ins>iterator insert(value_type&& obj);</ins>
4409 iterator insert(const_iterator hint, const value_type& obj);
4410 <ins>iterator insert(const_iterator hint, value_type&& obj);</ins>
4417 Add to 23.5.4.1 [unord.multiset.cnstr]:
4421 <pre>template <class InputIterator>
4422 unordered_multiset(InputIterator f, InputIterator l,
4423 size_type n = <i>implementation-defined</i>,
4424 const hasher& hf = hasher(),
4425 const key_equal& eql = key_equal(),
4426 const allocator_type& a = allocator_type());
4431 <i>Requires:</i> If the iterator's dereference operator returns an
4432 lvalue or a const rvalue <tt>value_type</tt>, then the
4433 <tt>value_type</tt> shall be <tt>CopyConstructible</tt>.
4439 Add new section [unord.multiset.modifiers]:
4443 <pre><ins>iterator insert(const value_type& x);</ins>
4444 <ins>iterator insert(value_type&& x);</ins>
4445 <ins>iterator insert(const_iterator hint, const value_type& x);</ins>
4446 <ins>iterator insert(const_iterator hint, value_type&& x);</ins>
4447 <ins>template <class InputIterator>
4448 void insert(InputIterator first, InputIterator last);</ins>
4454 <i>Requires:</i> Those signatures taking a <tt>const
4455 value_type&</tt> parameter requires the <tt>value_type</tt> to
4456 be <tt>CopyConstructible</tt>.
4460 The signature taking <tt>InputIterator</tt> parameters requires
4461 <tt>CopyConstructible</tt> of <tt>value_type</tt> if the dereferenced
4462 <tt>InputIterator</tt> returns an lvalue or <tt>const</tt> rvalue
4463 <tt>value_type</tt>.
4473 Voted to WP in Bellevue.
4478 post Bellevue, Pete notes:
4484 Please remind people who are reviewing issues to check that the text
4485 modifications match the current draft. Issue 676, for example, adds two
4486 overloads for unordered_map::insert taking a hint. One takes a
4487 const_iterator and returns a const_iterator, and the other takes an
4488 iterator and returns an iterator. This was correct at the time the issue
4489 was written, but was changed in Toronto so there is only one hint
4490 overload, taking a const_iterator and returning an iterator.
4493 This issue is not ready. In addition to the relatively minor signature
4494 problem I mentioned earlier, it puts requirements in the wrong places.
4495 Instead of duplicating requirements throughout the template
4496 specifications, it should put them in the front matter that talks about
4497 requirements for unordered containers in general. This presentation
4498 problem is editorial, but I'm not willing to do the extensive rewrite
4499 that it requires. Please put it back into Open status.
4503 <p><b>Rationale:</b></p>
4511 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2776.pdf">N2776</a>.
4520 <h3><a name="704"></a>704. MoveAssignable requirement for container value type overly strict</h3>
4521 <p><b>Section:</b> 23.2 [container.requirements] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
4522 <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2007-05-20 <b>Last modified:</b> 2009-10-20</p>
4523 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#container.requirements">active issues</a> in [container.requirements].</p>
4524 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#container.requirements">issues</a> in [container.requirements].</p>
4525 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
4526 <p><b>Discussion:</b></p>
4528 The move-related changes inadvertently overwrote the intent of <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#276">276</a>.
4529 Issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#276">276</a> removed the requirement of <tt>CopyAssignable</tt> from
4530 most of the member functions of node-based containers. But the move-related changes
4531 unnecessarily introduced the <tt>MoveAssignable</tt> requirement for those members which used to
4532 require <tt>CopyAssignable</tt>.
4536 We also discussed (c++std-lib-18722) the possibility of dropping <tt>MoveAssignable</tt>
4537 from some of the sequence requirements. Additionally the <i>in-place</i> construction
4538 work may further reduce requirements. For purposes of an easy reference, here are the
4539 minimum sequence requirements as I currently understand them. Those items in requirements
4540 table in the working draft which do not appear below have been purposefully omitted for
4541 brevity as they do not have any requirements of this nature. Some items which do not
4542 have any requirements of this nature are included below just to confirm that they were
4543 not omitted by mistake.
4547 <caption>Container Requirements</caption>
4548 <tbody><tr><td><tt>X u(a)</tt></td><td><tt>value_type</tt> must be <tt>CopyConstructible</tt></td></tr>
4549 <tr><td><tt>X u(rv)</tt></td><td><tt>array</tt> and containers with a <tt>propagate_never</tt> allocator require <tt>value_type</tt> to be <tt>MoveConstructible</tt></td></tr>
4550 <tr><td><tt>a = u</tt></td><td>Sequences require <tt>value_type</tt> to be <tt>CopyConstructible</tt> and <tt>CopyAssignable</tt>.
4551 Associative containers require <tt>value_type</tt> to be <tt>CopyConstructible</tt>.</td></tr>
4552 <tr><td><tt>a = rv</tt></td><td><tt>array</tt> requires <tt>value_type</tt> to be <tt>MoveAssignable</tt>.
4553 Sequences and Associative containers with <tt>propagate_never</tt> and <tt>propagate_on_copy_construction</tt> allocators require <tt>value_type</tt> to be <tt>MoveConstructible</tt>.</td></tr>
4554 <tr><td><tt>swap(a,u)</tt></td><td><tt>array</tt> and containers with <tt>propagate_never</tt> and
4555 <tt>propagate_on_copy_construction</tt> allocators require <tt>value_type</tt> to be <tt>Swappable</tt>.</td></tr>
4562 <caption>Sequence Requirements</caption>
4563 <tbody><tr><td><tt>X(n)</tt></td><td><tt>value_type</tt> must be <tt>DefaultConstructible</tt></td></tr>
4564 <tr><td><tt>X(n, t)</tt></td><td><tt>value_type</tt> must be <tt>CopyConstructible</tt></td></tr>
4565 <tr><td><tt>X(i, j)</tt></td><td>If the iterators return an lvalue the <tt>value_type</tt> must be <tt>CopyConstructible</tt>.
4566 If the iterators return an rvalue the <tt>value_type</tt> must be <tt>MoveConstructible</tt>.</td></tr>
4567 <tr><td><tt>a.insert(p, t)</tt></td><td>The <tt>value_type</tt> must be <tt>CopyConstructible</tt>.
4568 The sequences <tt>vector</tt> and <tt>deque</tt> also require the <tt>value_type</tt> to be <tt>CopyAssignable</tt>.</td></tr>
4569 <tr><td><tt>a.insert(p, rv)</tt></td><td>The <tt>value_type</tt> must be <tt>MoveConstructible</tt>.
4570 The sequences <tt>vector</tt> and <tt>deque</tt> also require the <tt>value_type</tt> to be <tt>MoveAssignable</tt>.</td></tr>
4571 <tr><td><tt>a.insert(p, n, t)</tt></td><td>The <tt>value_type</tt> must be <tt>CopyConstructible</tt>.
4572 The sequences <tt>vector</tt> and <tt>deque</tt> also require the <tt>value_type</tt> to be <tt>CopyAssignable</tt>.</td></tr>
4573 <tr><td><tt>a.insert(p, i, j)</tt></td><td>If the iterators return an lvalue the <tt>value_type</tt> must be <tt>CopyConstructible</tt>.
4574 The sequences <tt>vector</tt> and <tt>deque</tt> also require the <tt>value_type</tt> to be <tt>CopyAssignable</tt> when the iterators return an lvalue.
4575 If the iterators return an rvalue the <tt>value_type</tt> must be <tt>MoveConstructible</tt>.
4576 The sequences <tt>vector</tt> and <tt>deque</tt> also require the <tt>value_type</tt> to be <tt>MoveAssignable</tt> when the iterators return an rvalue.</td></tr>
4577 <tr><td><tt>a.erase(p)</tt></td><td>The sequences <tt>vector</tt> and <tt>deque</tt> require the <tt>value_type</tt> to be <tt>MoveAssignable</tt>.</td></tr>
4578 <tr><td><tt>a.erase(q1, q2)</tt></td><td>The sequences <tt>vector</tt> and <tt>deque</tt> require the <tt>value_type</tt> to be <tt>MoveAssignable</tt>.</td></tr>
4579 <tr><td><tt>a.clear()</tt></td><td></td></tr>
4580 <tr><td><tt>a.assign(i, j)</tt></td><td>If the iterators return an lvalue the <tt>value_type</tt> must be <tt>CopyConstructible</tt> and <tt>CopyAssignable</tt>.
4581 If the iterators return an rvalue the <tt>value_type</tt> must be <tt>MoveConstructible</tt> and <tt>MoveAssignable</tt>.</td></tr>
4582 <tr><td><tt>a.assign(n, t)</tt></td><td>The <tt>value_type</tt> must be <tt>CopyConstructible</tt> and <tt>CopyAssignable</tt>.</td></tr>
4583 <tr><td><tt>a.resize(n)</tt></td><td>The <tt>value_type</tt> must be <tt>DefaultConstructible</tt>.
4584 The sequence <tt>vector</tt> also requires the <tt>value_type</tt> to be <tt>MoveConstructible</tt>.</td></tr>
4585 <tr><td><tt>a.resize(n, t)</tt></td><td>The <tt>value_type</tt> must be <tt>CopyConstructible</tt>.</td></tr>
4592 <caption>Optional Sequence Requirements</caption>
4593 <tbody><tr><td><tt>a.front()</tt></td><td></td></tr>
4594 <tr><td><tt>a.back()</tt></td><td></td></tr>
4595 <tr><td><tt>a.push_front(t)</tt></td><td>The <tt>value_type</tt> must be <tt>CopyConstructible</tt>.</td></tr>
4596 <tr><td><tt>a.push_front(rv)</tt></td><td>The <tt>value_type</tt> must be <tt>MoveConstructible</tt>.</td></tr>
4597 <tr><td><tt>a.push_back(t)</tt></td><td>The <tt>value_type</tt> must be <tt>CopyConstructible</tt>.</td></tr>
4598 <tr><td><tt>a.push_back(rv)</tt></td><td>The <tt>value_type</tt> must be <tt>MoveConstructible</tt>.</td></tr>
4599 <tr><td><tt>a.pop_front()</tt></td><td></td></tr>
4600 <tr><td><tt>a.pop_back()</tt></td><td></td></tr>
4601 <tr><td><tt>a[n]</tt></td><td></td></tr>
4602 <tr><td><tt>a.at[n]</tt></td><td></td></tr>
4609 <caption>Associative Container Requirements</caption>
4610 <tbody><tr><td><tt>X(i, j)</tt></td><td>If the iterators return an lvalue the <tt>value_type</tt> must be <tt>CopyConstructible</tt>.
4611 If the iterators return an rvalue the <tt>value_type</tt> must be <tt>MoveConstructible</tt>.</td></tr>
4612 <tr><td><tt>a_uniq.insert(t)</tt></td><td>The <tt>value_type</tt> must be <tt>CopyConstructible</tt>.</td></tr>
4613 <tr><td><tt>a_uniq.insert(rv)</tt></td><td>The <tt>key_type</tt> and the <tt>mapped_type</tt> (if it exists) must be <tt>MoveConstructible</tt>.</td></tr>
4614 <tr><td><tt>a_eq.insert(t)</tt></td><td>The <tt>value_type</tt> must be <tt>CopyConstructible</tt>.</td></tr>
4615 <tr><td><tt>a_eq.insert(rv)</tt></td><td>The <tt>key_type</tt> and the <tt>mapped_type</tt> (if it exists) must be <tt>MoveConstructible</tt>.</td></tr>
4616 <tr><td><tt>a.insert(p, t)</tt></td><td>The <tt>value_type</tt> must be <tt>CopyConstructible</tt>.</td></tr>
4617 <tr><td><tt>a.insert(p, rv)</tt></td><td>The <tt>key_type</tt> and the <tt>mapped_type</tt> (if it exists) must be <tt>MoveConstructible</tt>.</td></tr>
4618 <tr><td><tt>a.insert(i, j)</tt></td><td>If the iterators return an lvalue the <tt>value_type</tt> must be <tt>CopyConstructible</tt>.
4619 If the iterators return an rvalue the <tt>key_type</tt> and the <tt>mapped_type</tt> (if it exists) must be <tt>MoveConstructible</tt>..</td></tr>
4626 <caption>Unordered Associative Container Requirements</caption>
4627 <tbody><tr><td><tt>X(i, j, n, hf, eq)</tt></td><td>If the iterators return an lvalue the <tt>value_type</tt> must be <tt>CopyConstructible</tt>.
4628 If the iterators return an rvalue the <tt>value_type</tt> must be <tt>MoveConstructible</tt>.</td></tr>
4629 <tr><td><tt>a_uniq.insert(t)</tt></td><td>The <tt>value_type</tt> must be <tt>CopyConstructible</tt>.</td></tr>
4630 <tr><td><tt>a_uniq.insert(rv)</tt></td><td>The <tt>key_type</tt> and the <tt>mapped_type</tt> (if it exists) must be <tt>MoveConstructible</tt>.</td></tr>
4631 <tr><td><tt>a_eq.insert(t)</tt></td><td>The <tt>value_type</tt> must be <tt>CopyConstructible</tt>.</td></tr>
4632 <tr><td><tt>a_eq.insert(rv)</tt></td><td>The <tt>key_type</tt> and the <tt>mapped_type</tt> (if it exists) must be <tt>MoveConstructible</tt>.</td></tr>
4633 <tr><td><tt>a.insert(p, t)</tt></td><td>The <tt>value_type</tt> must be <tt>CopyConstructible</tt>.</td></tr>
4634 <tr><td><tt>a.insert(p, rv)</tt></td><td>The <tt>key_type</tt> and the <tt>mapped_type</tt> (if it exists) must be <tt>MoveConstructible</tt>.</td></tr>
4635 <tr><td><tt>a.insert(i, j)</tt></td><td>If the iterators return an lvalue the <tt>value_type</tt> must be <tt>CopyConstructible</tt>.
4636 If the iterators return an rvalue the <tt>key_type</tt> and the <tt>mapped_type</tt> (if it exists) must be <tt>MoveConstructible</tt>..</td></tr>
4643 <caption>Miscellaneous Requirements</caption>
4644 <tbody><tr><td><tt>map[lvalue-key]</tt></td><td>The <tt>key_type</tt> must be <tt>CopyConstructible</tt>.
4645 The <tt>mapped_type</tt> must be <tt>DefaultConstructible</tt> and <tt>MoveConstructible</tt>.</td></tr>
4646 <tr><td><tt>map[rvalue-key]</tt></td><td>The <tt>key_type</tt> must be <tt>MoveConstructible</tt>.
4647 The <tt>mapped_type</tt> must be <tt>DefaultConstructible</tt> and <tt>MoveConstructible</tt>.</td></tr>
4651 Kona (2007): Howard and Alan to update requirements table in issue with emplace signatures.
4656 Bellevue: This should be handled as part of the concepts work.
4661 2009-07-20 Reopened by Howard:
4667 This is one of the issues that was "solved by concepts" and is now no longer solved.
4671 In a nutshell, concepts adopted the "minimum requirements" philosophy outlined
4672 in the discussion of this issue, and enforced it. My strong suggestion is that
4673 we translate the concepts specification into documentation for the containers.
4677 What this means for vendors is that they will have to implement container members
4678 being careful to only use those characteristics of a type that the concepts specification
4679 formally allowed. Note that I <em>am not</em> talking about <tt>enable_if</tt>'ing
4680 everything. I am simply suggesting that (for example) we tell the vendor he can't call <tt>T's</tt>
4681 copy constructor or move constructor within the <tt>emplace</tt> member function, etc.
4685 What this means for customers is that they will be able to use types within C++03
4686 containers which are sometimes not CopyConstructible, and sometimes not even
4687 MoveConstructible, etc.
4697 Leave open. Howard to provide wording.
4702 <p><b>Proposed resolution:</b></p>
4706 <p><b>Rationale:</b></p>
4714 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2776.pdf">N2776</a>.
4723 <h3><a name="724"></a>724. <tt>DefaultConstructible</tt> is not defined</h3>
4724 <p><b>Section:</b> 20.2.1 [utility.arg.requirements] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
4725 <b>Submitter:</b> Pablo Halpern <b>Opened:</b> 2007-09-12 <b>Last modified:</b> 2009-10-23</p>
4726 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#utility.arg.requirements">active issues</a> in [utility.arg.requirements].</p>
4727 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#utility.arg.requirements">issues</a> in [utility.arg.requirements].</p>
4728 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
4729 <p><b>Discussion:</b></p>
4731 The <tt>DefaultConstructible</tt> requirement is referenced in
4732 several places in the August 2007 working draft
4733 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2369.pdf">N2369</a>,
4734 but is not defined anywhere.
4744 Walking into the default/value-initialization mess...
4747 Why two lines? Because we need both expressions to be valid.
4750 AJM not sure what the phrase "default constructed" means. This is
4751 unfortunate, as the phrase is already used 24 times in the library!
4754 Example: const int would not accept first line, but will accept the second.
4757 This is an issue that must be solved by concepts, but we might need to solve it independantly first.
4760 It seems that the requirements are the syntax in the proposed first
4761 column is valid, but not clear what semantics we need.
4764 A table where there is no post-condition seems odd, but appears to sum up our position best.
4767 At a minimum an object is declared and is destuctible.
4770 Move to open, as no-one happy to produce wording on the fly.
4775 2009-07-28 Reopened by Alisdair. No longer solved by concepts.
4780 2009-08-17 Daniel adds "[defaultconstructible]" to table title. <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#408">408</a>
4781 depends upon this issue.
4786 2009-08-18 Alisdair adds:
4792 Looking at the proposed table in this issue, it really needs two rows:
4797 <caption>Table 33: <tt>DefaultConstructible</tt> requirements [defaultconstructible]</caption>
4799 <th>expression</th><th>post-condition</th>
4803 <td><tt>T t;</tt></td><td><tt>t</tt> is default-initialized.</td>
4807 <td><tt>T{}</tt></td><td>Object of type <tt>T</tt> is value-initialized.</td>
4813 Note I am using the new brace-initialization syntax that is unambiguous
4814 in all use cases (no most vexing parse.)
4819 2009-10-03 Daniel adds:
4825 The suggested definition <tt>T{}</tt> describing it as
4826 value-initialization is wrong, because it belongs to list-initialization
4827 which would - as the current rules are - always prefer a
4828 initializer-list constructor over a default-constructor. I don't
4829 consider this as an appropriate definition of
4830 <tt>DefaultConstructible</tt>. My primary suggestion is to ask core,
4831 whether the special case <tt>T{}</tt> (which also easily leads to
4832 ambiguity situations for more than one initializer-list in a class)
4833 would always prefer a default-constructor - if any - before considering
4834 an initializer-list constructor or to provide another syntax form to
4835 prefer value-initialization over list-initialization. If that fails I
4836 would fall back to suggest to use the expression <tt>T()</tt> instead of
4837 <tt>T{}</tt> with all it's disadvantages for the meaning of the
4841 <blockquote><pre>T t();
4851 Leave Open. Core is looking to make Alisdair's proposed
4857 <p><b>Proposed resolution:</b></p>
4859 In section 20.2.1 [utility.arg.requirements], before table 33, add the
4863 <p style="text-align: center;" align="center">Table 33: <tt>DefaultConstructible</tt> requirements [defaultconstructible]</p>
4865 <div align="center">
4867 <table style="border-collapse: collapse;" border="0" cellpadding="0" cellspacing="0">
4869 <td style="border-style: solid none double solid; border-color: navy -moz-use-text-color navy navy; border-width: 1pt medium 1.5pt 1pt; padding: 0in 5.4pt; width: 85.5pt;" valign="top" width="114">
4870 <p style="margin: 0in 0in 0.0001pt; text-align: center;" align="center">expression</p>
4872 <td style="border-style: solid solid double none; border-color: navy navy navy -moz-use-text-color; border-width: 1pt 1pt 1.5pt medium; padding: 0in 5.4pt; width: 243pt;" valign="top" width="324">
4873 <p style="margin: 0in 0in 0.0001pt; text-align: center;" align="center">post-condition</p>
4877 <td style="border-style: none none solid solid; border-color: -moz-use-text-color -moz-use-text-color navy navy; border-width: medium medium 1pt 1pt; padding: 0in 5.4pt; width: 85.5pt;" valign="top" width="114">
4878 <p style="margin: 0in 0in 0.0001pt;"><tt>T
4882 <td style="border-style: none solid solid none; border-color: -moz-use-text-color navy navy -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 243pt;" valign="top" width="324">
4883 <p style="margin: 0in 0in 0.0001pt;"><tt>T</tt>
4884 is <i>default constructed.</i></p>
4893 <p><b>Rationale:</b></p>
4899 We believe concepts will solve this problem
4900 (<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2774.pdf">N2774</a>).
4908 <h3><a name="726"></a>726. Missing <tt>regex_replace()</tt> overloads</h3>
4909 <p><b>Section:</b> 28.11.4 [re.alg.replace] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
4910 <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2007-09-22 <b>Last modified:</b> 2009-10-23</p>
4911 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#re.alg.replace">active issues</a> in [re.alg.replace].</p>
4912 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#re.alg.replace">issues</a> in [re.alg.replace].</p>
4913 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
4914 <p><b>Discussion:</b></p>
4916 Two overloads of <tt>regex_replace()</tt> are currently provided:
4919 <blockquote><pre>template <class OutputIterator, class BidirectionalIterator,
4920 class traits, class charT>
4922 regex_replace(OutputIterator out,
4923 BidirectionalIterator first, BidirectionalIterator last,
4924 const basic_regex<charT, traits>& e,
4925 const basic_string<charT>& fmt,
4926 regex_constants::match_flag_type flags =
4927 regex_constants::match_default);
4929 template <class traits, class charT>
4930 basic_string<charT>
4931 regex_replace(const basic_string<charT>& s,
4932 const basic_regex<charT, traits>& e,
4933 const basic_string<charT>& fmt,
4934 regex_constants::match_flag_type flags =
4935 regex_constants::match_default);
4939 <li>Overloads taking <tt>const charT *</tt> are provided for <tt>regex_match()</tt> and
4940 <tt>regex_search()</tt>, but not <tt>regex_replace()</tt>. This is inconsistent.</li>
4942 <p>The absence of <tt>const charT *</tt> overloads prevents ordinary-looking code from compiling, such as:</p>
4944 <blockquote><pre>const string s("kitten");
4945 const regex r("en");
4946 cout << regex_replace(s, r, "y") << endl;
4950 The compiler error message will be something like "could not deduce
4951 template argument for 'const std::basic_string<_Elem> &' from 'const
4956 Users expect that anything taking a <tt>basic_string<charT></tt> can also take a
4957 <tt>const charT *</tt>. In their own code, when they write a function taking
4958 <tt>std::string</tt> (or <tt>std::wstring</tt>), they can pass a <tt>const char *</tt> (or <tt>const
4959 wchar_t *</tt>), thanks to <tt>basic_string</tt>'s implicit constructor. Because the
4960 regex algorithms are templated on <tt>charT</tt>, they can't rely on
4961 <tt>basic_string</tt>'s implicit constructor (as the compiler error message
4962 indicates, template argument deduction fails first).
4966 If a user figures out what the compiler error message means, workarounds
4967 are available - but they are all verbose. Explicit template arguments
4968 could be given to <tt>regex_replace()</tt>, allowing <tt>basic_string</tt>'s implicit
4969 constructor to be invoked - but <tt>charT</tt> is the last template argument, not
4970 the first, so this would be extremely verbose. Therefore, constructing
4971 a <tt>basic_string</tt> from each C string is the simplest workaround.
4976 There is an efficiency consideration: constructing <tt>basic_string</tt>s can
4977 impose performance costs that could be avoided by a library
4978 implementation taking C strings and dealing with them directly.
4979 (Currently, for replacement sources, C strings can be converted into
4980 iterator pairs at the cost of verbosity, but for format strings, there
4981 is no way to avoid constructing a <tt>basic_string</tt>.)
4991 We note that Boost already has these overloads. However, the proposed
4992 wording is provided only for 28.11.4 [re.alg.replace]; wording is needed for the synopsis
4993 as well. We also note that this has impact on <tt>match_results::format</tt>,
4994 which may require further overloads.
5003 Daniel to tweak for us.
5007 2009-07-25 Daniel tweaks both this issue and <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#727">727</a>.
5013 This is solved by the proposed resolution of <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#727">727</a>.
5023 Leave Open. Though we believe this is solved by the proposed resolution
5024 to <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#727">727</a>.
5029 <p><b>Proposed resolution:</b></p>
5032 Provide additional overloads for <tt>regex_replace()</tt>: one additional
5033 overload of the iterator-based form (taking <tt>const charT* fmt</tt>), and three
5034 additional overloads of the convenience form (one taking <tt>const charT*
5035 str</tt>, another taking <tt>const charT* fmt</tt>, and the third taking both <tt>const
5036 charT* str</tt> and <tt>const charT* fmt</tt>). 28.11.4 [re.alg.replace]:
5040 <pre>template <class OutputIterator, class BidirectionalIterator,
5041 class traits, class charT>
5043 regex_replace(OutputIterator out,
5044 BidirectionalIterator first, BidirectionalIterator last,
5045 const basic_regex<charT, traits>& e,
5046 const basic_string<charT>& fmt,
5047 regex_constants::match_flag_type flags =
5048 regex_constants::match_default);
5050 <ins>template <class OutputIterator, class BidirectionalIterator,
5051 class traits, class charT>
5053 regex_replace(OutputIterator out,
5054 BidirectionalIterator first, BidirectionalIterator last,
5055 const basic_regex<charT, traits>& e,
5057 regex_constants::match_flag_type flags =
5058 regex_constants::match_default);</ins>
5061 <pre>template <class traits, class charT>
5062 basic_string<charT>
5063 regex_replace(const basic_string<charT>& s,
5064 const basic_regex<charT, traits>& e,
5065 const basic_string<charT>& fmt,
5066 regex_constants::match_flag_type flags =
5067 regex_constants::match_default);
5069 <ins>template <class traits, class charT>
5070 basic_string<charT>
5071 regex_replace(const basic_string<charT>& s,
5072 const basic_regex<charT, traits>& e,
5074 regex_constants::match_flag_type flags =
5075 regex_constants::match_default);</ins>
5077 <ins>template <class traits, class charT>
5078 basic_string<charT>
5079 regex_replace(const charT* s,
5080 const basic_regex<charT, traits>& e,
5081 const basic_string<charT>& fmt,
5082 regex_constants::match_flag_type flags =
5083 regex_constants::match_default);</ins>
5085 <ins>template <class traits, class charT>
5086 basic_string<charT>
5087 regex_replace(const charT* s,
5088 const basic_regex<charT, traits>& e,
5090 regex_constants::match_flag_type flags =
5091 regex_constants::match_default);</ins>
5101 <h3><a name="727"></a>727. <tt>regex_replace()</tt> doesn't accept <tt>basic_string</tt>s with custom traits and allocators</h3>
5102 <p><b>Section:</b> 28.11.4 [re.alg.replace] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Review">Review</a>
5103 <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2007-09-22 <b>Last modified:</b> 2009-10-23</p>
5104 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#re.alg.replace">active issues</a> in [re.alg.replace].</p>
5105 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#re.alg.replace">issues</a> in [re.alg.replace].</p>
5106 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Review">Review</a> status.</p>
5107 <p><b>Discussion:</b></p>
5109 <tt>regex_match()</tt> and <tt>regex_search()</tt> take <tt>const basic_string<charT, ST,
5110 SA>&</tt>. <tt>regex_replace()</tt> takes <tt>const basic_string<charT>&</tt>. This prevents
5111 <tt>regex_replace()</tt> from accepting <tt>basic_string</tt>s with custom traits and
5116 Overloads of <tt>regex_replace()</tt> taking <tt>basic_string</tt> should be additionally
5117 templated on <tt>class ST, class SA</tt> and take <tt>const basic_string<charT, ST,
5118 SA>&</tt>. Consistency with <tt>regex_match()</tt> and <tt>regex_search()</tt> would place
5119 <tt>class ST, class SA</tt> as the first template arguments; compatibility with
5120 existing code using TR1 and giving explicit template arguments to
5121 <tt>regex_replace()</tt> would place <tt>class ST, class SA</tt> as the last template
5131 Bill comments, "We need to look at the depth of this change."
5134 Pete remarks that we are here dealing with a convenience function
5135 that saves a user from calling the iterato-based overload.
5148 Howard to ask Stephan Lavavej to provide wording.
5152 2009-07-17 Stephan provided wording.
5157 2009-07-25 Daniel tweaks both this issue and <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#726">726</a>.
5163 One relevant part of the proposed resolution below suggests
5164 to add a new overload of the format member function in the
5165 <tt>match_results</tt> class template that accepts two character pointers
5166 defining the <tt>begin</tt> and <tt>end</tt> of a format range. A more general
5167 approach could have proposed a pair of iterators instead, but
5168 the used pair of char pointers reflects existing practice. If the
5169 committee strongly favors an iterator-based signature, this
5170 could be simply changed. I think that the minimum requirement
5171 should be a <tt>BidirectionalIterator</tt>, but current implementations
5172 take advantage (at least partially) of the <tt>RandomAccessIterator</tt>
5173 sub interface of the char pointers.
5176 <p><b>Suggested Resolution:</b></p>
5178 <p><i>[Moved into the proposed resloution]</i></p>
5185 2009-07-30 Stephan agrees with Daniel's wording. Howard places Daniel's wording
5186 in the Proposed Resolution.
5196 Move to Review. Chair is anxious to move this to Ready in Pittsburgh.
5201 <p><b>Proposed resolution:</b></p>
5206 Change 28.4 [re.syn] as indicated:
5209 <blockquote><pre>// 28.11.4, function template regex_replace:
5210 template <class OutputIterator, class BidirectionalIterator,
5211 class traits, class charT<ins>, class ST, class SA</ins>>
5213 regex_replace(OutputIterator out,
5214 BidirectionalIterator first, BidirectionalIterator last,
5215 const basic_regex<charT, traits>& e,
5216 const basic_string<charT<ins>, ST, SA</ins>>& fmt,
5217 regex_constants::match_flag_type flags =
5218 regex_constants::match_default);
5221 template <class OutputIterator, class BidirectionalIterator,
5222 class traits, class charT>
5224 regex_replace(OutputIterator out,
5225 BidirectionalIterator first, BidirectionalIterator last,
5226 const basic_regex<charT, traits>& e,
5228 regex_constants::match_flag_type flags =
5229 regex_constants::match_default);
5232 template <class traits, class charT<ins>, class ST, class SA,
5233 class FST, class FSA</ins>>
5234 basic_string<charT<ins>, ST, SA</ins>>
5235 regex_replace(const basic_string<charT<ins>, ST, SA</ins>>& s,
5236 const basic_regex<charT, traits>& e,
5237 const basic_string<charT<ins>, FST, FSA</ins>>& fmt,
5238 regex_constants::match_flag_type flags =
5239 regex_constants::match_default);
5242 template <class traits, class charT, class ST, class SA>
5243 basic_string<charT, ST, SA>
5244 regex_replace(const basic_string<charT, ST, SA>& s,
5245 const basic_regex<charT, traits>& e,
5247 regex_constants::match_flag_type flags =
5248 regex_constants::match_default);
5252 template <class traits, class charT, class ST, class SA>
5253 basic_string<charT>
5254 regex_replace(const charT* s,
5255 const basic_regex<charT, traits>& e,
5256 const basic_string<charT, ST, SA>& fmt,
5257 regex_constants::match_flag_type flags =
5258 regex_constants::match_default);
5262 template <class traits, class charT>
5263 basic_string<charT>
5264 regex_replace(const charT* s,
5265 const basic_regex<charT, traits>& e,
5267 regex_constants::match_flag_type flags =
5268 regex_constants::match_default);
5275 Change 28.10 [re.results]/3, class template <tt>match_results</tt> as
5279 <blockquote><pre><ins>
5280 template <class OutputIter>
5282 format(OutputIter out,
5283 const char_type* fmt_first, const char_type* fmt_last,
5284 regex_constants::match_flag_type flags =
5285 regex_constants::format_default) const;
5288 template <class OutputIter<ins>, class ST, class SA</ins>>
5290 format(OutputIter out,
5291 const <del>string_type</del><ins>basic_string<char_type, ST, SA></ins>& fmt,
5292 regex_constants::match_flag_type flags =
5293 regex_constants::format_default) const;
5295 <ins>template <class ST, class SA></ins>
5296 <del>string_type</del><ins>basic_string<char_type, ST, SA></ins>
5297 format(const <del>string_type</del><ins>basic_string<char_type, ST, SA></ins>& fmt,
5298 regex_constants::match_flag_type flags =
5299 regex_constants::format_default) const;
5303 format(const char_type* fmt,
5304 regex_constants::match_flag_type flags =
5305 regex_constants::format_default) const;
5312 Insert at the very beginning of 28.10.4 [re.results.form] the following:
5315 <blockquote><pre><ins>
5316 template <class OutputIter>
5318 format(OutputIter out,
5319 const char_type* fmt_first, const char_type* fmt_last,
5320 regex_constants::match_flag_type flags =
5321 regex_constants::format_default) const;
5327 1 <i>Requires:</i> The type <tt>OutputIter</tt> shall satisfy the requirements for an
5328 Output Iterator (24.2.2 [output.iterators]).
5332 2 <i>Effects:</i> Copies the character sequence <tt>[fmt_first,fmt_last)</tt> to
5333 <tt>OutputIter out</tt>. Replaces each
5334 format specifier or escape sequence in the copied range with either
5335 the character(s) it represents
5336 or the sequence of characters within <tt>*this</tt> to which it refers. The
5337 bitmasks specified in <tt>flags</tt>
5338 determines what format specifiers and escape sequences are recognized.
5342 3 <i>Returns:</i> <tt>out</tt>.
5350 Change 28.10.4 [re.results.form], before p. 1 until p. 3 (according to
5355 <blockquote><pre>template <class OutputIter<ins>, class ST, class SA</ins>>
5357 format(OutputIter out,
5358 const <del>string_type</del><ins>basic_string<char_type, ST, SA></ins>& fmt,
5359 regex_constants::match_flag_type flags =
5360 regex_constants::format_default) const;
5365 <del><i>Requires:</i> The type <tt>OutputIter</tt> shall satisfy the requirements for
5366 an Output Iterator (24.2.3).</del>
5370 <del><i>Effects:</i> Copies the character sequence <tt>[fmt.begin(),fmt.end())</tt> to
5371 <tt>OutputIter out</tt>. Replaces each
5372 format specifier or escape sequence in <tt>fmt</tt> with either the
5373 character(s) it represents or the sequence of
5374 characters within <tt>*this</tt> to which it refers. The bitmasks specified in
5375 <tt>flags</tt> determines what format
5376 specifiers and escape sequences are recognized.</del>
5380 <i>Returns:</i> <tt><del>out</del><ins>format(out, fmt.data(), fmt.data() +
5381 fmt.size(), flags)</ins></tt>.
5389 Change 28.10.4 [re.results.form], before p. 4 until p. 4 (according to
5390 previous numbering) as indicated:
5393 <blockquote><pre><ins>template <class ST, class SA></ins>
5394 <del>string_type</del><ins>basic_string<char_type, ST, SA></ins>
5395 format(const <del>string_type</del><ins>basic_string<char_type, ST, SA></ins>& fmt,
5396 regex_constants::match_flag_type flags =
5397 regex_constants::format_default) const;
5402 <i>Effects:</i> <del>Returns a copy of the string <tt>fmt</tt>. Replaces each format
5403 specifier or escape sequence
5404 in <tt>fmt</tt> with either the character(s) it represents or the sequence of
5405 characters within <tt>*this</tt> to which
5406 it refers. The bitmasks specified in flags determines what format
5407 specifiers and escape sequences are
5408 recognized.</del> <ins>Constructs an empty string <tt>result</tt> of type
5409 <tt>basic_string<char_type, ST, SA></tt>,
5410 and calls <tt>format(back_inserter(result), fmt, flags)</tt>.</ins>
5414 <ins><i>Returns:</i> <tt>result</tt></ins>
5422 At the end of 28.10.4 [re.results.form] insert as indicated:
5425 <blockquote><pre><ins>
5427 format(const char_type* fmt,
5428 regex_constants::match_flag_type flags =
5429 regex_constants::format_default) const;
5434 <ins><i>Effects:</i> Constructs an empty string <tt>result</tt> of type <tt>string_type</tt>, and calls
5435 <tt>format(back_inserter(result), fmt, fmt +
5436 char_traits<char_type>::length(fmt), flags)</tt>.</ins>
5439 <ins><i>Returns:</i> <tt>result</tt></ins>
5448 Change 28.11.4 [re.alg.replace] before p. 1 as indicated:
5451 <blockquote><pre>template <class OutputIterator, class BidirectionalIterator,
5452 class traits, class charT<ins>, class ST, class SA</ins>>
5454 regex_replace(OutputIterator out,
5455 BidirectionalIterator first, BidirectionalIterator last,
5456 const basic_regex<charT, traits>& e,
5457 const basic_string<charT<ins>, ST, SA</ins>>& fmt,
5458 regex_constants::match_flag_type flags =
5459 regex_constants::match_default);
5462 template <class OutputIterator, class BidirectionalIterator,
5463 class traits, class charT>
5465 regex_replace(OutputIterator out,
5466 BidirectionalIterator first, BidirectionalIterator last,
5467 const basic_regex<charT, traits>& e,
5469 regex_constants::match_flag_type flags =
5470 regex_constants::match_default);
5474 <i>Effects:</i> [..]. If any matches are found then, for each such match, if <tt>!(flags &
5475 regex_constants::format_no_copy)</tt> calls <tt>std::copy(m.prefix().first,
5477 out)</tt>, and then calls <tt>m.format(out, fmt, flags)</tt> <ins>for the first
5478 form of the function
5479 and <tt>m.format(out, fmt, fmt + char_traits<charT>::length(fmt), flags)</tt>
5488 Change 28.11.4 [re.alg.replace] before p. 3 as indicated:
5491 <blockquote><pre>template <class traits, class charT<ins>, class ST, class SA,
5492 class FST, class FSA</ins>>
5493 basic_string<charT<ins>, ST, SA</ins>>
5494 regex_replace(const basic_string<charT<ins>, ST, SA</ins>>& s,
5495 const basic_regex<charT, traits>& e,
5496 const basic_string<charT<ins>, FST, FSA</ins>>& fmt,
5497 regex_constants::match_flag_type flags =
5498 regex_constants::match_default);
5501 template <class traits, class charT, class ST, class SA>
5502 basic_string<charT, ST, SA>
5503 regex_replace(const basic_string<charT, ST, SA>& s,
5504 const basic_regex<charT, traits>& e,
5506 regex_constants::match_flag_type flags =
5507 regex_constants::match_default);
5511 <i>Effects:</i> Constructs an empty string <tt>result</tt> of type <tt>basic_string<charT<ins>,
5512 ST, SA</ins>></tt>, calls <tt>regex_replace(back_inserter(result), s.begin(), s.end(),
5513 e, fmt, flags)</tt>, and then returns <tt>result</tt>.
5520 At the end of 28.11.4 [re.alg.replace] add the following new prototype description:
5523 <blockquote><pre><ins>
5524 template <class traits, class charT, class ST, class SA>
5525 basic_string<charT>
5526 regex_replace(const charT* s,
5527 const basic_regex<charT, traits>& e,
5528 const basic_string<charT, ST, SA>& fmt,
5529 regex_constants::match_flag_type flags =
5530 regex_constants::match_default);
5534 template <class traits, class charT>
5535 basic_string<charT>
5536 regex_replace(const charT* s,
5537 const basic_regex<charT, traits>& e,
5539 regex_constants::match_flag_type flags =
5540 regex_constants::match_default);
5545 <i>Effects:</i> Constructs an empty string <tt>result</tt> of type <tt>basic_string<charT></tt>,
5546 calls <tt>regex_replace(back_inserter(result), s, s +
5547 char_traits<charT>::length(s),
5548 e, fmt, flags)</tt>, and then returns <tt>result</tt>.
5563 <h3><a name="742"></a>742. Enabling <tt>swap</tt> for proxy iterators</h3>
5564 <p><b>Section:</b> 20.2.1 [utility.arg.requirements] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
5565 <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2007-10-10 <b>Last modified:</b> 2009-11-08</p>
5566 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#utility.arg.requirements">active issues</a> in [utility.arg.requirements].</p>
5567 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#utility.arg.requirements">issues</a> in [utility.arg.requirements].</p>
5568 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
5569 <p><b>Discussion:</b></p>
5571 This issue was split from <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#672">672</a>. <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#672">672</a> now just
5572 deals with changing the requirements of <tt>T</tt> in the <tt>Swappable</tt>
5573 requirement from <tt>CopyConstructible</tt> and <tt>CopyAssignable</tt> to
5574 <tt>MoveConstructible</tt> and <tt>MoveAssignable</tt>.
5578 This issue seeks to widen the <tt>Swappable</tt> requirement to support proxy iterators. Here
5582 <blockquote><pre>namespace Mine {
5584 template <class T>
5587 template <class T>
5588 struct proxied_iterator
5590 typedef T value_type;
5591 typedef proxy<T> reference;
5592 reference operator*() const;
5598 // heavy type, has an optimized swap, maybe isn't even copyable or movable, just swappable
5603 void swap(A&, A&);
5604 void swap(proxy<A>, A&);
5605 void swap(A&, proxy<A>);
5606 void swap(proxy<A>, proxy<A>);
5612 Mine::proxied_iterator<Mine::A> i(...)
5614 <b>swap(*i1, a);</b>
5618 The key point to note in the above code is that in the call to <tt>swap</tt>, <tt>*i1</tt>
5619 and <tt>a</tt> are different types (currently types can only be <tt>Swappable</tt> with the
5620 same type). A secondary point is that to support proxies, one must be able to pass rvalues
5621 to <tt>swap</tt>. But note that I am not stating that the general purpose <tt>std::swap</tt>
5622 should accept rvalues! Only that overloaded <tt>swap</tt>s, as in the example above, be allowed
5627 That is, no standard library code needs to change. We simply need to have a more flexible
5628 definition of <tt>Swappable</tt>.
5638 While we believe Concepts work will define a swappable concept, we
5639 should still resolve this issue if possible to give guidance to the
5643 Would an ambiguous swap function in two namespaces found by ADL break
5644 this wording? Suggest that the phrase "valid expression" means such a
5645 pair of types would still not be swappable.
5648 Motivation is proxy-iterators, but facility is considerably more
5649 general. Are we happy going so far?
5652 We think this wording is probably correct and probably an improvement on
5653 what's there in the WP. On the other hand, what's already there in the
5654 WP is awfully complicated. Why do we need the two bullet points? They're
5655 too implementation-centric. They don't add anything to the semantics of
5656 what swap() means, which is there in the post-condition. What's wrong
5657 with saying that types are swappable if you can call swap() and it
5658 satisfies the semantics of swapping?
5663 2009-07-28 Reopened by Alisdair. No longer solved by concepts.
5673 Leave as Open. Dave to provide wording.
5677 2009-11-08 Howard adds:
5682 Updated wording to sync with
5683 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n3000.pdf">N3000</a>.
5684 Also this issue is very closely related to <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#594">594</a>.
5689 <p><b>Proposed resolution:</b></p>
5691 Change 20.2.1 [utility.arg.requirements]:
5697 -1- The template definitions in the C++ Standard Library refer to various
5698 named requirements whose details are set out in tables 31-38. In these
5699 tables, <tt>T</tt> <ins>and <tt>V</tt> are</ins> <del>is a</del> type<ins>s</ins> to be supplied by a C++ program
5700 instantiating a template; <tt>a</tt>, <tt>b</tt>, and <tt>c</tt> are
5701 values of type <tt>const T</tt>; <tt>s</tt> and <tt>t</tt> are modifiable
5702 lvalues of type <tt>T</tt>; <tt>u</tt> is a value of type (possibly
5703 <tt>const</tt>) <tt>T</tt>; <del>and</del> <tt>rv</tt> is a non-<tt>const</tt>
5704 rvalue of type <tt>T</tt><ins>; <tt>w</tt> is a value of type <tt>T</tt>; and <tt>v</tt> is a value of type <tt>V</tt></ins>.
5708 <caption>Table 37: <tt>Swappable</tt> requirements <b>[swappable]</b></caption>
5709 <tbody><tr><th>expression</th><th>Return type</th><th>Post-condition</th></tr>
5710 <tr><td><tt>swap(<del>s</del><ins>w</ins>,<del>t</del><ins>v</ins>)</tt></td><td><tt>void</tt></td>
5711 <td><del><tt>t</tt></del><ins><tt>w</tt></ins> has the value originally
5712 held by <del><tt>u</tt></del><ins><tt>v</tt></ins>, and
5713 <del><tt>u</tt></del><ins><tt>v</tt></ins> has the value originally held
5714 by <del><tt>t</tt></del><ins><tt>w</tt></ins></td></tr>
5715 <tr><td colspan="3">
5717 The <tt>Swappable</tt> requirement is met by satisfying one or more of the following conditions:
5721 <tt>T</tt> is <tt>Swappable</tt> if <ins><tt>T</tt> and <tt>V</tt> are
5722 the same type and </ins> <tt>T</tt> satisfies the
5723 <tt>MoveConstructible</tt> requirements (Table
5725 <tt>MoveAssignable</tt> requirements (Table
5729 <tt>T</tt> is <tt>Swappable</tt> <ins>with <tt>V</tt></ins> if a namespace scope function named
5730 <tt>swap</tt> exists in the same namespace as the definition of
5731 <tt>T</tt> <ins>or <tt>V</tt></ins>, such that the expression
5732 <tt>swap(<del>s</del><ins>w</ins>,<del>t</del> <ins>v</ins>)</tt> is valid and has the
5733 semantics described in this table.
5736 <tt>T</tt> is <tt>Swappable</tt> if <tt>T</tt> is an array type whose
5737 element type is <tt>Swappable</tt>.
5746 <p><b>Rationale:</b></p>
5754 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2758.pdf">N2758</a>.
5763 <h3><a name="774"></a>774. Member swap undefined for most containers</h3>
5764 <p><b>Section:</b> 23 [containers] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
5765 <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2008-01-14 <b>Last modified:</b> 2009-10-31</p>
5766 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#containers">active issues</a> in [containers].</p>
5767 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#containers">issues</a> in [containers].</p>
5768 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
5769 <p><b>Discussion:</b></p>
5771 It appears most containers declare but do not define a member-swap
5776 This is unfortunate, as all overload the <tt>swap</tt> algorithm to call the
5777 member-swap function!
5778 (required for <tt>swappable</tt> guarantees [Table 37] and Container Requirements
5783 Note in particular that Table 87 gives semantics of <tt>a.swap(b)</tt> as <tt>swap(a,b)</tt>,
5784 yet for all containers we define <tt>swap(a,b)</tt> to call <tt>a.swap(b)</tt> - a circular
5789 A quick survey of clause 23 shows that the following containers provide a
5790 definition for member-swap:
5793 <blockquote><pre>array
5800 Whereas the following declare it, but do not define the semantics:
5803 <blockquote><pre>deque
5817 Suggested resolution:
5820 Provide a definition for each of the affected containers...
5829 Move to Open and ask Alisdair to provide wording.
5838 Daniel to provide wording.
5839 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2590.pdf">N2590</a>
5840 is no longer applicable.
5844 2009-07-28 Daniel provided wording.
5851 It assumes that the proposed resolution for <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#883">883</a> is applied,
5852 which breaks the circularity of definition between member
5853 <tt>swap</tt> and free <tt>swap</tt>.
5857 It uses the notation of the pre-concept allocator trait
5858 <tt>allocator_propagation_map</tt>, which might be renamed after the
5859 next refactoring phase of generalized allocators.
5863 It requires that compare objects, key equal functions and
5864 hash functions in containers are swapped via unqualified free
5865 <tt>swap</tt> according to <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#594">594</a>.
5871 2009-09-30 Daniel adds:
5876 The outcome of this issue should be considered with the outcome of <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1198">1198</a> both in style and in content (e.g. bullet 9 suggests to
5877 define the semantic of <tt>void
5878 priority_queue::swap(priority_queue&)</tt> in terms of the member
5879 <tt>swap</tt> of the container).
5888 Looked at, but took no action on as it overlaps too much with
5889 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2982.pdf">N2982</a>.
5890 Waiting for a new draft WP.
5899 Leave as open. Pablo to provide wording.
5903 2009-10-26 Pablo updated wording. Here is the wording he replaced:
5907 <blockquote class="note">
5911 Add a new Throws clause just after X [allocator.propagation.map]/5:
5914 <blockquote><pre>static void swap(Alloc& a, Alloc& b);
5918 <i>Effects:</i> [..]
5922 <ins><i>Throws:</i> Nothing.</ins>
5927 This exception requirement is added, such that it's combination with the
5928 general container requirements of
5929 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2723.pdf">N2723</a>
5930 [container.requirements.general]/9
5931 make it unambiguously clear that the following descriptions of "swaps the
5932 allocators" have the following meaning: (a) This swap is done by calling
5933 <tt>allocator_propagation_map<allocator_type>::swap</tt> and (b) This allocator
5934 swap does never propagate an exception
5941 Change 23.2.4.1 [associative.reqmts.except]/3 as indicated:
5945 For associative containers, no <tt>swap</tt> function throws an exception unless that
5946 exception is thrown by the <del>copy constructor or copy assignment
5948 <ins><tt>swap</tt></ins> of the container's <tt>Pred</tt> object<ins>s</ins><del> (if any)</del>.
5954 Change 23.2.5.1 [unord.req.except]/3 as indicated:
5958 For unordered associative containers, no <tt>swap</tt> function throws an
5960 that exception is thrown by the <del>copy constructor or copy
5961 assignment operator</del>
5962 <ins><tt>swap</tt></ins> of the container's <tt>Hash</tt> or <tt>Pred</tt> object<ins>s,
5963 respectively</ins><del> (if any)</del>.
5969 Insert a new paragraph just after 23.3 [sequences]/1:
5973 <ins>In addition to being available via inclusion of the <tt><algorithm></tt> header,
5974 the <tt>swap</tt> function templates in 25.3.3 [alg.swap] are also available when the
5975 header <tt><queue></tt> is included.</ins>
5979 There is a new issue in process that will suggest a minimum header for <tt>swap</tt>
5980 and <tt>move</tt>. If this one is provided, this text can be removed and the header
5981 dependency should be added to <tt><queue></tt>
5989 Add one further clause at the end of 23.3.1.2 [array.special]:
5991 <p><i>[This part is added, because otherwise <tt>array::swap</tt> would otherwise
5993 general contract of 23.2.1 [container.requirements.general] p. 10 b. 5]</i></p>
5997 <ins><i>Throws:</i> Nothing, unless one of the element-wise <tt>swap</tt> calls throws
6006 In 23.3.2 [deque], class template deque synopsis change as indicated:
6008 <blockquote><pre>void swap(deque<del><T,Alloc></del>&);
6014 At the end of 23.3.2.3 [deque.modifiers] add as indicated:
6017 <blockquote><pre><ins>void swap(deque& x);</ins>
6021 <ins><i>Effects:</i> Exchanges the contents and swaps the allocators of <tt>*this</tt>
6022 with that of <tt>x</tt>.</ins>
6025 <ins><i>Complexity:</i> Constant time.</ins>
6037 In 23.3.3 [forwardlist], class template <tt>forward_list</tt> synposis change as indicated:
6040 <blockquote><pre>void swap(forward_list<del><T,Allocator></del>&);
6046 At the end of 23.3.3.4 [forwardlist.modifiers] add as indicated:
6049 <blockquote><pre><ins>void swap(forward_list& x);</ins>
6053 <ins><i>Effects:</i> Exchanges the contents and swaps the allocators of <tt>*this</tt>
6054 with that of <tt>x</tt>.</ins>
6057 <ins><i>Complexity:</i> Constant time.</ins>
6069 In 23.3.4 [list], class template <tt>list</tt> synopsis change as indicated:
6072 <blockquote><pre>void swap(list<del><T,Allocator></del>&);
6078 At the end of 23.3.4.3 [list.modifiers] add as indicated:
6081 <blockquote><pre><ins>void swap(list& x);</ins>
6086 <ins><i>Effects:</i> Exchanges the contents and swaps the allocators of <tt>*this</tt>
6087 with that of <tt>x</tt>.</ins>
6091 <ins><i>Complexity:</i> Constant time.</ins>
6101 At the end of 23.3.5.2.2 [priqueue.members] add a new prototype description:
6104 <blockquote><pre><ins>void swap(priority_queue& q);</ins>
6108 <ins><i>Requires:</i> <tt>Compare</tt> shall satisfy the <tt>Swappable</tt> requirements
6109 ( [swappable]).</ins>
6113 This requirement is added to ensure that even a user defined <tt>swap</tt>
6115 ADL for <tt>Compare</tt> satisfies the <tt>Swappable</tt> requirements
6120 <ins><i>Effects:</i> <tt>this->c.swap(q.c); swap(this->comp, q.comp);</tt></ins>
6123 <ins><i>Throws:</i> What and if <tt>c.swap(q.c)</tt> and <tt>swap(comp, q.comp)</tt> throws.</ins>
6128 This part is added, because otherwise <tt>priority_queue::swap</tt> would otherwise
6129 contradict the general contract of 23.2.1 [container.requirements.general] p. 10 b. 5
6138 In 23.3.6 [vector], class template <tt>vector</tt> synopsis change as indicated:
6141 <blockquote><pre>void swap(vector<del><T,Allocator></del>&);
6147 Change 23.3.6.2 [vector.capacity]/8 as indicated:
6150 <blockquote><pre>void swap(vector<del><T,Allocator></del>& x);
6154 <i>Effects:</i> Exchanges the contents and <tt>capacity()</tt> <ins>and swaps the
6156 of <tt>*this</tt> with that of <tt>x</tt>.
6165 Insert a new paragraph just before 23.4 [associative]/1:
6169 <ins>In addition to being available via inclusion of the <tt><algorithm></tt> header,
6170 the <tt>swap</tt> function templates in 25.3.3 [alg.swap] are also available when any of the
6171 headers <tt><map></tt> or <tt><set></tt> are included.</ins>
6179 In 23.4.1 [map], class template <tt>map</tt> synopsis change as indicated:
6182 <blockquote><pre>void swap(map<del><Key,T,Compare,Allocator></del>&);
6188 At the end of 23.4.1.3 [map.modifiers] add as indicated:
6191 <blockquote><pre><ins>void swap(map& x);</ins>
6196 <ins><i>Requires:</i> Compare shall satisfy the <tt>Swappable</tt> requirements
6197 ( [swappable]).</ins>
6201 This requirement is added to ensure that even a user defined <tt>swap</tt>
6202 which is found by ADL for <tt>Compare</tt> satisfies the <tt>Swappable</tt>
6208 <ins><i>Effects:</i> Exchanges the contents and swaps the allocators of <tt>*this</tt>
6209 with that of <tt>x</tt>, followed by an unqualified <tt>swap</tt> of the comparison objects
6210 of <tt>*this</tt> and <tt>x</tt>.</ins>
6214 <ins><i>Complexity:</i> Constant time</ins>
6226 In 23.4.2 [multimap], class template <tt>multimap</tt> synopsis change as indicated:
6229 <blockquote><pre>void swap(multimap<del><Key,T,Compare,Allocator></del>&);
6235 At the end of 23.4.2.2 [multimap.modifiers] add as indicated:
6238 <blockquote><pre><ins>void swap(multimap& x);</ins>
6243 <ins><i>Requires:</i> Compare shall satisfy the <tt>Swappable</tt> requirements
6244 ( [swappable]).</ins>
6247 <ins><i>Effects:</i> Exchanges the contents and swaps the allocators of <tt>*this</tt>
6248 with that of <tt>x</tt>, followed by an unqualified <tt>swap</tt> of the comparison objects
6249 of <tt>*this</tt> and <tt>x</tt>.</ins>
6252 <ins><i>Complexity:</i> Constant time</ins>
6264 In 23.4.3 [set], class template <tt>set</tt> synopsis change as indicated:
6267 <blockquote><pre>void swap(set<del><Key,Compare,Allocator></del>&);
6273 After section 23.4.3.1 [set.cons] add a new section <ins><tt>set</tt> modifiers
6274 [set.modifiers]</ins>
6275 and add the following paragraphs:
6278 <blockquote><pre><ins>void swap(set& x);</ins>
6283 <ins><i>Requires:</i> Compare shall satisfy the <tt>Swappable</tt> requirements
6284 ( [swappable]).</ins>
6288 <ins><i>Effects:</i> Exchanges the contents and swaps the allocators of <tt>*this</tt>
6289 with that of <tt>x</tt>, followed by an unqualified <tt>swap</tt> of the comparison objects
6290 of <tt>*this</tt> and <tt>x</tt>.</ins>
6294 <ins>Complexity: Constant time</ins>
6306 In 23.4.4 [multiset], class template <tt>multiset</tt> synosis, change as indicated:
6309 <blockquote><pre>void swap(multiset<del><Key,Compare,Allocator></del>&);
6315 After section 23.4.4.1 [multiset.cons] add a new section <ins><tt>multiset</tt> modifiers
6316 [multiset.modifiers]</ins> and add the following paragraphs:
6319 <blockquote><pre><ins>void swap(multiset& x);</ins>
6324 <ins><i>Requires:</i> Compare shall satisfy the <tt>Swappable</tt> requirements
6325 ( [swappable]).</ins>
6329 <ins><i>Effects:</i> Exchanges the contents and swaps the allocators of <tt>*this</tt>
6330 with that of <tt>x</tt>, followed by an unqualified <tt>swap</tt> of the comparison objects
6331 of <tt>*this</tt> and <tt>x</tt>.</ins>
6335 <ins><i>Complexity:</i> Constant time</ins>
6345 Insert a new paragraph just before 23.5 [unord]/1:
6349 <ins>In addition to being available via inclusion of the <tt><algorithm></tt> header,
6350 the <tt>swap</tt> function templates in 25.3.3 [alg.swap] are also available when any of the
6351 headers <tt><unordered_map></tt> or <tt><unordered_set></tt> are included.</ins>
6358 After section 23.5.1.2 [unord.map.elem] add a new section <ins>unordered_map
6359 modifiers [unord.map.modifiers]</ins> and add the following paragraphs:
6362 <blockquote><pre><ins>void swap(unordered_map& x);</ins>
6367 <ins><i>Requires:</i> <tt>Hash</tt> and <tt>Pred</tt> shall satisfy the <tt>Swappable</tt> requirements
6368 ( [swappable]).</ins>
6372 This requirement is added to ensure that even a user defined <tt>swap</tt>
6373 which is found by ADL for <tt>Hash</tt> and <tt>Pred</tt> satisfies the <tt>Swappable</tt>
6379 <ins><i>Effects:</i> Exchanges the contents and hash policy and swaps the
6380 allocators of <tt>*this</tt>
6381 with that of <tt>x</tt>, followed by an unqualified <tt>swap</tt> of the <tt>Pred</tt> objects
6382 and an unqualified <tt>swap</tt> of the <tt>Hash</tt> objects of <tt>*this</tt> and <tt>x</tt>.</ins>
6386 <ins><i>Complexity:</i> Constant time</ins>
6394 After section 23.5.2.1 [unord.multimap.cnstr] add a new section
6395 <ins>unordered_multimap
6396 modifiers [unord.multimap.modifiers]</ins> and add the following paragraphs:
6399 <blockquote><pre><ins>void swap(unordered_multimap& x);</ins>
6404 <ins><i>Requires:</i> <tt>Hash</tt> and <tt>Pred</tt> shall satisfy the <tt>Swappable</tt> requirements
6405 ( [swappable]).</ins>
6409 <ins><i>Effects:</i> Exchanges the contents and hash policy and swaps the
6410 allocators of <tt>*this</tt>
6411 with that of <tt>x</tt>, followed by an unqualified <tt>swap</tt> of the <tt>Pred</tt> objects
6412 and an unqualified <tt>swap</tt> of the <tt>Hash</tt> objects of <tt>*this</tt> and <tt>x</tt></ins>
6415 <ins><i>Complexity:</i> Constant time</ins>
6423 After section 23.5.3.1 [unord.set.cnstr] add a new section
6424 <ins>unordered_set modifiers
6425 [unord.set.modifiers]</ins> and add the following paragraphs:
6428 <blockquote><pre><ins>void swap(unordered_set& x);</ins>
6433 <ins><i>Requires:</i> <tt>Hash</tt> and <tt>Pred</tt> shall satisfy the <tt>Swappable</tt> requirements
6434 ( [swappable]).</ins>
6438 <ins><i>Effects:</i> Exchanges the contents and hash policy and swaps the
6439 allocators of <tt>*this</tt>
6440 with that of <tt>x</tt>, followed by an unqualified <tt>swap</tt> of the <tt>Pred</tt> objects
6441 and an unqualified <tt>swap</tt> of the <tt>Hash</tt> objects of <tt>*this</tt> and <tt>x</tt></ins>
6445 <ins><i>Complexity:</i> Constant time</ins>
6453 After section 23.5.4.1 [unord.multiset.cnstr] add a new section
6454 <ins>unordered_multiset
6455 modifiers [unord.multiset.modifiers]</ins> and add the following paragraphs:
6458 <blockquote><pre><ins>void swap(unordered_multiset& x);</ins>
6463 <ins><i>Requires:</i> <tt>Hash</tt> and <tt>Pred</tt> shall satisfy the <tt>Swappable</tt> requirements
6464 ( [swappable]).</ins>
6468 <ins><i>Effects:</i> Exchanges the contents and hash policy and swaps the
6469 allocators of <tt>*this</tt>
6470 with that of <tt>x</tt>, followed by an unqualified <tt>swap</tt> of the <tt>Pred</tt> objects
6471 and an unqualified <tt>swap</tt> of the <tt>Hash</tt> objects of <tt>*this</tt> and <tt>x</tt></ins>
6474 <ins><i>Complexity:</i> Constant time</ins>
6485 2009-10-30 Pablo and Daniel updated wording.
6491 <p><b>Proposed resolution:</b></p>
6494 This resolution is based on the September 2009 WP,
6495 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2960.pdf">N2960</a>,
6498 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2982.pdf">N2982</a>
6499 and issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#883">883</a> and <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1232">1232</a> have already been applied. Note in
6500 particular that Table 91 in
6501 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2960.pdf">N2960</a>
6502 is refered to as Table 90 because
6503 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2982.pdf">N2982</a>
6504 removed the old Table 90. This resolution also addresses issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#431">431</a>.
6508 In 23.2.1 [container.requirements.general], replace the a.swap(b) row in table 90,
6509 "container requirements" (was table 91 before the application of <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2982.pdf">N2982</a> to the
6515 <td><code>a.swap(b)</code></td>
6516 <td><code>void</code></td>
6517 <td> </td>
6518 <td><code><del>swap(a,b)</del><ins>Exchange the contents of <tt>a</tt> and <tt>b</tt>.</ins></code></td>
6522 <td><ins><code>swap(a,b)</code></ins></td>
6523 <td><ins><code>void</code></ins></td>
6524 <td><code> </code></td>
6525 <td><ins><code>a.swap(b)</code></ins></td>
6526 <td><ins>(Note A)</ins></td>
6531 Modify the notes immediately following Table 90 in
6532 23.2.1 [container.requirements.general] as follows (The wording below is after the
6533 application of <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2982.pdf">N2982</a> to <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2960.pdf">N2960</a>. The editor might also want to combine Notes
6537 Notes: the algorithms<del> swap(),</del> equal() and lexicographical_compare()
6538 are defined in Clause 25. Those entries marked "(Note A)" or "(Note B)"
6539 <del>should</del> have <ins>linear complexity for array and</ins> constant
6540 complexity <ins>for all other standard containers</ins>.
6543 In 23.2.1 [container.requirements.general], after paragraph 9, add:
6545 <blockquote><p><ins>
6546 The expression <code>a.swap(b)</code>, for containers <code>a</code>
6547 and <code>b</code> of a standard container type other than <code>array</code>,
6548 exchanges the values of <code>a</code> and <code>b</code> without invoking any
6549 move, copy, or swap operations on the individual container elements.
6550 Any <code>Compare</code>, <code>Pred</code>, or <code>Hash</code> function
6551 objects belonging to <code>a</code> and <code>b</code> shall satisfy
6552 the <code>Swappable</code> requirements and are exchanged by unqualified calls
6553 to non-member <code>swap</code>. If
6554 <code>allocator_traits<allocator_type>::propagate_on_container_swap::value
6555 == true</code>, then the allocators of <code>a</code> and <code>b</code> are
6556 also exchanged using an unqualified call to non-member <code>swap</code>.
6557 Otherwise, the behavior is undefined unless <code>a.get_allocator() ==
6558 b.get_allocator()</code>. Each iterator refering to an element in one
6559 container before the swap shall refer to the same element in the other
6560 container after the swap. It is unspecified whether an iterator with
6561 value <code>a.end()</code> before the swap will have
6562 value <code>b.end()</code> after the swap. In addition to being available via
6563 inclusion of the <code><utility></code> header, the <code>swap</code>
6564 function template in 25.3.3 [alg.swap] is also available within the definition of
6565 every standard container's <code>swap</code> function.
6566 </ins></p></blockquote>
6568 Note to the editor: Paragraph 2 starts with a sentence fragment,
6569 clearly from an editing or source-control error.
6573 Modify 23.2.4.1 [associative.reqmts.except] as follows:
6577 <b>23.2.4.1 Exception safety guarantees 23.2.4.1 [associative.reqmts.except]</b>
6580 For associative containers, no <code>clear()</code> function throws an
6581 exception. <code>erase(k)</code> does not throw an exception unless that
6582 exception is thrown by the
6583 container's <code><del>Pred</del><ins>Compare</ins></code> object (if any).
6586 For associative containers, if an exception is thrown by any operation from
6587 within an <code>insert()</code> function inserting a single element,
6588 the <code>insert()</code> function has no effect.
6591 For associative containers, no <code>swap</code> function throws an exception
6592 unless that exception is thrown by the <del>copy constructor
6593 or copy assignment operator</del><ins>swap</ins> of the
6594 container's <code><del>Pred</del><ins>Compare</ins></code> object (if any).
6597 Modify 23.2.5.1 [unord.req.except], paragraph 3 as follows:
6600 For unordered associative containers, no <code>swap</code> function throws an
6601 exception unless that exception is thrown by the <del>copy constructor or copy
6602 assignment operator</del><ins>swap</ins> of the container's <code>Hash</code>
6603 or <code>Pred</code> object (if any).
6606 Modify section 23.3.1.2 [array.special]:
6610 <b>array specialized algorithms 23.3.1.2 [array.special]</b>
6613 <code>template <class T, size_t N> void swap(array<T,N>& x,array<T,N>& y);</code>
6617 <i>Effects:</i> <code><del>swap_ranges(x.begin(), x.end(), y.begin() );</del><ins>x.swap(y);</ins></code>
6622 Add a new section after 23.3.1.5 [array.fill] (Note to the editor: array::fill make use
6623 of a concept requirement that must be removed or changed to text.):
6627 <ins><b>array::swap [array.swap]</b></ins>
6630 <ins><code>void swap(array& y);</code></ins>
6634 <i>Effects:</i> <code>swap_ranges(this->begin(), this->end(), y.begin() );</code>
6637 <i>Throws:</i> Nothing unless one of the element-wise swap calls throws an
6641 [<i>Note</i>: Unlike other containers' <code>swap</code> functions,
6642 <code>array::swap</code> takes linear, not constant, time, may exit via an
6643 exception, and does not cause iterators to become associated with the other
6644 container. — <i>end note</i>]
6650 Insert a new paragraph just after 23.3.5 [container.adaptors]/1:
6652 <blockquote><p><ins>
6653 For container adaptors, no <code>swap</code> function throws an exception
6654 unless that exception is thrown by the swap of the
6655 adaptor's <code>Container</code> or <code>Compare</code> object (if any).
6656 </ins></p></blockquote>
6670 <h3><a name="780"></a>780. <tt>std::merge()</tt> specification incorrect/insufficient</h3>
6671 <p><b>Section:</b> 25.4.4 [alg.merge] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Review">Review</a>
6672 <b>Submitter:</b> Daniel Krügler <b>Opened:</b> 2008-01-25 <b>Last modified:</b> 2009-10-22</p>
6673 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Review">Review</a> status.</p>
6674 <p><b>Discussion:</b></p>
6676 Though issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#283">283</a> has fixed many open issues, it seems that some are still open:
6680 Both 25.3.4 [lib.alg.merge] in 14882:2003 and 25.4.4 [alg.merge] in N2461
6681 have no Requires element and the Effects element contains some requirements,
6682 which is probably editorial. Worse is that:
6687 no assignment requirements are specified (neither implicit nor explicit).
6691 the effects clause just speaks of "merges", which is badly worded
6692 near to a circular definition.
6696 p. 2 mentions a range <tt>[first, last)</tt>, which is not defined by the
6697 function arguments or otherwise.
6701 p. 2 says "according to the ordering defined by comp" which is both
6703 this excludes the first variant with <) and redundant (because the
6704 following subordinate
6705 clause mentions comp again)
6710 Post Summit Alisdair adds:
6719 (where <tt>last</tt> is equal to <tt>next(result, distance(first1, last1) +
6720 distance(first2, last2))</tt>, such that resulting range will be sorted in
6721 non-decreasing order; that is, for every iterator <tt>i</tt> in <tt>[result,last)</tt> other
6722 than <tt>result</tt>, the condition <tt>*i < *prev(i)</tt> or, respectively, <tt>comp(*i,
6723 *prev(i))</tt> will be <tt>false</tt>.
6727 Note that this might still not be technically accurate in the case of
6728 <tt>InputIterators</tt>, depending on other resolutions working their way through the
6729 system (<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1011">1011</a>).
6734 Post Summit Daniel adds:
6739 If we want to use <tt>prev</tt> and <tt>next</tt> here (Note: <tt>merge</tt>
6740 is sufficiently satisfied with <tt>InputIterator</tt>) we should instead *add* more to
6741 25 [algorithms]/6, but I can currently not propose any good wording for this.
6750 Pete points out the existing wording in [algorithms]/4
6751 that permits the use of + in algorithm specifications.
6754 Alisdair points out that that wording may not apply to input iterators.
6771 2009-08-23 Daniel reopens:
6777 The proposed wording must be rephrased, because the part
6781 for every iterator <tt>i</tt> in <tt>[result,last)</tt> other than <tt>result</tt>, the condition
6782 <tt>*i < *(i - 1)</tt> or, respectively, <tt>comp(*i, *(i - 1))</tt> will be <tt>false</tt>"
6786 isn't meaningful, because the range <tt>[result,last)</tt> is that of a pure
6787 <tt>OutputIterator</tt>, which is not <em>readable</em> in general.
6790 <p><i>[Howard: Proposed wording updated by Daniel, status moved from Ready to Review.]</i></p>
6801 Matt has some different words to propose. Those words have been moved into
6802 the proposed wording section, and the original proposed wording now appears
6807 In 25.4.4 [alg.merge] replace p.1+ 2:
6812 <i>Effects:</i> <del>Merges</del><ins>Copies all the elements of the</ins>
6814 <tt>[first1,last1)</tt> and <tt>[first2,last2)</tt> into the range <tt>[result,result +
6815 (last1 - first1) + (last2 - first2))</tt>
6816 <ins>, such that resulting range will be sorted in non-decreasing
6817 order; that is for every
6818 pair of iterators <tt>i</tt> and <tt>j</tt> of either input ranges, where <tt>*i</tt> was copied
6820 before <tt>*j</tt> was copied to the output range, the condition <tt>*j < *i</tt> or,
6821 respectively, <tt>comp(*j, *i)</tt>
6822 will be <tt>false</tt>.</ins>
6826 <ins><i>Requires:</i></ins>The resulting range shall not overlap with either
6827 of the original ranges.
6828 <del>The list will be sorted in non-decreasing order according to the
6830 <tt>comp</tt>; that is, for every iterator <tt>i</tt> in <tt>[first,last)</tt> other than <tt>first</tt>,
6831 the condition <tt>*i < *(i - 1)</tt> or
6832 <tt>comp(*i, *(i - 1))</tt> will be <tt>false</tt>.</del>
6840 <p><b>Proposed resolution:</b></p>
6842 <i>Effects:</i> Merges two sorted ranges <tt>[first1,last1)</tt> and
6843 <tt>[first2,last2)</tt> into the range <tt>[result, result + (last1 -
6844 first1) + (last2 - first2))</tt>.
6847 <i>Effects:</i> Copies all the elements of the two sorted ranges
6848 <tt>[first1,last1)</tt> and <tt>[first2,last2)</tt> into the range
6849 <tt>[result, result_last)</tt>, where <tt>result_last</tt> is <tt>result
6850 + (last1 - first1) + (last2 - first2)</tt>, such that the resulting
6851 range satisfies <tt>is_sorted(result, result_last)</tt> or
6852 <tt>is_sorted(result, result_last, comp)</tt>, respectively.
6856 <ins><i>Requires:</i></ins> The resulting range shall not overlap with
6857 either of the original ranges. <del>The list will be sorted in
6858 non-decreasing order according to the ordering defined by <tt>comp</tt>;
6859 that is, for every iterator <tt>i</tt> in <tt>[first,last)</tt> other
6860 than <tt>first</tt>, the condition <tt>*i < *(i - 1)</tt> or
6861 <tt>comp(*i, *(i - 1))</tt> will be <tt>false</tt>.</del>
6870 <h3><a name="801"></a>801. <tt>tuple</tt> and <tt>pair</tt> trivial members</h3>
6871 <p><b>Section:</b> 20.5 [tuple] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
6872 <b>Submitter:</b> Lawrence Crowl <b>Opened:</b> 2008-02-18 <b>Last modified:</b> 2009-10-23</p>
6873 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#tuple">issues</a> in [tuple].</p>
6874 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
6875 <p><b>Discussion:</b></p>
6877 Classes with trivial special member functions are inherently more
6878 efficient than classes without such functions. This efficiency is
6879 particularly pronounced on modern ABIs that can pass small classes
6880 in registers. Examples include value classes such as complex numbers
6881 and floating-point intervals. Perhaps more important, though, are
6882 classes that are simple collections, like <tt>pair</tt> and <tt>tuple</tt>. When the
6883 parameter types of these classes are trivial, the <tt>pair</tt>s and <tt>tuple</tt>s
6884 themselves can be trivial, leading to substantial performance wins.
6887 The current working draft make specification of trivial functions
6888 (where possible) much easer through <tt>default</tt>ed and <tt>delete</tt>d functions.
6889 As long as the semantics of defaulted and deleted functions match
6890 the intended semantics, specification of defaulted and deleted
6891 functions will yield more efficient programs.
6894 There are at least two cases where specification of an explicitly
6895 defaulted function may be desirable.
6898 First, the <tt>std::pair</tt> template has a non-trivial default constructor,
6899 which prevents static initialization of the pair even when the
6900 types are statically initializable. Changing the definition to
6903 <blockquote><pre>pair() = default;
6907 would enable such initialization. Unfortunately, the change is
6908 not semantically neutral in that the current definition effectively
6909 forces value initialization whereas the change would not value
6910 initialize in some contexts.
6914 ** Does the committee confirm that forced value initialization
6915 was the intent? If not, does the committee wish to change the
6916 behavior of <tt>std::pair</tt> in C++0x?
6919 Second, the same default constructor issue applies to <tt>std::tuple</tt>.
6920 Furthermore, the <tt>tuple</tt> copy constructor is current non-trivial,
6921 which effectively prevents passing it in registers. To enable
6922 passing <tt>tuples</tt> in registers, the copy constructor should be
6923 make explicitly <tt>default</tt>ed. The new declarations are:
6926 <blockquote><pre>tuple() = default;
6927 tuple(const tuple&) = default;
6931 This changes is not implementation neutral. In particular, it
6932 prevents implementations based on pointers to the parameter
6933 types. It does however, permit implementations using the
6934 parameter types as bases.
6937 ** How does the committee wish to trade implementation
6938 efficiency versus implementation flexibility?
6948 General agreement; the first half of the issue is NAD.
6951 Before voting on the second half, it was agreed that a "Strongly Favor"
6952 vote meant support for trivial tuples (assuming usual requirements met),
6953 even at the expense of other desired qualities. A "Weakly Favor" vote
6954 meant support only if not at the expense of other desired qualities.
6957 Concensus: Go forward, but not at expense of other desired qualities.
6960 It was agreed to Alisdair should fold this work in with his other
6961 pair/tuple action items, above, and that issue 801 should be "open", but
6962 tabled until Alisdair's proposals are disposed of.
6967 2009-05-27 Daniel adds:
6972 This is partly solved by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1117">1117</a>.
6981 Wait for dust to settle from fixing exception safety problem
6986 2009-07-20 Alisdair adds:
6992 Basically, this issue is what should we do with the default constructor
6993 for pairs and tuples of trivial types. The motivation of the issue was
6994 to force static initialization rather than dynamic initialization, and
6995 was rejected in the case of pair as it would change the meaning of
6996 existing programs. The advice was "do the best we can" for tuple
6997 without changing existing meaning.
7001 Frankfurt seems to simply wait and see the resolution on no-throw move
7002 constructors, which (I believe) is only tangentially related to this
7003 issue, but as good as any to defer until Santa Cruz.
7007 Looking again now, I think constant (static) initialization for pair can
7008 be salvaged by making the default construct constexpr. I have a
7009 clarification from Core that this is intended to work, even if the
7010 constructor is not trivial/constexpr, so long as no temporaries are
7011 implied in the process (even if elided).
7021 Leave as open. Alisdair to provide wording.
7026 <p><b>Proposed resolution:</b></p>
7035 <h3><a name="811"></a>811. <tt>pair</tt> of pointers no longer works with literal 0</h3>
7036 <p><b>Section:</b> 20.3.4 [pairs] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
7037 <b>Submitter:</b> Doug Gregor <b>Opened:</b> 2008-03-14 <b>Last modified:</b> 2009-10-23</p>
7038 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#pairs">active issues</a> in [pairs].</p>
7039 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#pairs">issues</a> in [pairs].</p>
7040 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
7041 <p><b>Discussion:</b></p>
7042 <blockquote><pre>#include <utility>
7046 std::pair<char *, char *> p (0,0);
7051 I just got a bug report about that, because it's valid C++03, but not
7052 C++0x. The important realization, for me, is that the emplace
7053 proposal---which made <tt>push_back</tt> variadic, causing the <tt>push_back(0)</tt>
7054 issue---didn't cause this break in backward compatibility. The break
7055 actually happened when we added this pair constructor as part of adding
7056 rvalue references into the language, long before variadic templates or
7060 <blockquote><pre>template<class U, class V> pair(U&& x, V&& y);
7064 Now, concepts will address this issue by constraining that <tt>pair</tt>
7065 constructor to only <tt>U</tt>'s and <tt>V</tt>'s that can properly construct "first" and
7066 "second", e.g. (from
7067 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2322.pdf">N2322</a>):
7070 <blockquote><pre>template<class U , class V >
7071 requires Constructible<T1, U&&> && Constructible<T2, V&&>
7072 pair(U&& x , V&& y );
7082 Suggested to resolve using pass-by-value for that case.
7085 Side question: Should pair interoperate with tuples? Can construct a
7086 tuple of a pair, but not a pair from a two-element tuple.
7089 Related to <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#885">885</a>.
7094 2009-07-28 Reopened by Alisdair. No longer solved by concepts.
7104 Leave as open. Howard to provide wording.
7109 <p><b>Proposed resolution:</b></p>
7114 <p><b>Rationale:</b></p>
7122 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2770.pdf">N2770</a>.
7132 <h3><a name="815"></a>815. <tt>std::function</tt> and <tt>reference_closure</tt> do not use perfect forwarding</h3>
7133 <p><b>Section:</b> 20.7.15.2.4 [func.wrap.func.inv] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
7134 <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2008-03-16 <b>Last modified:</b> 2009-10-23</p>
7135 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
7136 <p><b>Discussion:</b></p>
7138 <tt>std::function</tt> and <tt>reference_closure</tt> should use "perfect forwarding" as
7139 described in the rvalue core proposal.
7148 According to Doug Gregor, as far as <tt>std::function</tt> is concerned, perfect
7149 forwarding can not be obtained because of type erasure. Not everyone
7150 agreed with this diagnosis of forwarding.
7154 2009-05-01 Howard adds:
7160 Sebastian Gesemann brought to my attention that the <tt>CopyConstructible</tt>
7161 requirement on <tt>function</tt>'s <tt>ArgTypes...</tt> is an unnecessary
7165 <blockquote><pre>template<Returnable R, <b>CopyConstructible</b>... ArgTypes>
7166 class function<R(ArgTypes...)>
7171 On further investigation, this complaint seemed to be the same
7172 issue as this one. I believe the reason <tt>CopyConstructible</tt> was put
7173 on <tt>ArgTypes</tt> in the first place was because of the nature of the
7174 <i>invoke</i> member:
7177 <blockquote><pre>template<class R, class ...ArgTypes>
7179 function<R(ArgTypes...)>::operator()(ArgTypes... arg) const
7182 throw bad_function_call();
7183 return (*f_)(arg...);
7188 However now with rvalue-refs, "by value" no longer implies <tt>CopyConstructible</tt>
7189 (as Sebastian correctly points out). If rvalue arguments are supplied, <tt>MoveConstructible</tt>
7190 is sufficient. Furthermore, the constraint need not be applied in <tt>function</tt>
7191 if I understand correctly. Rather the client must apply the proper constraints
7192 at the call site. Therefore, at the very least, I recommend that <tt>CopyConstructible</tt>
7193 be removed from the template class <tt>function</tt>.
7197 Furthermore we need to mandate that the <i>invoker</i> is coded as:
7200 <blockquote><pre>template<class R, class ...ArgTypes>
7202 function<R(ArgTypes...)>::operator()(ArgTypes... arg) const
7205 throw bad_function_call();
7206 return (*f_)(<b>std::forward<ArgTypes>(</b>arg<b>)</b>...);
7211 Note that <tt>ArgTypes&&</tt> (the "perfect forwarding signature") is not
7212 appropriate here as this is not a deduced context for <tt>ArgTypes</tt>. Instead
7213 the client's arguments must implicitly convert to the non-deduced <tt>ArgType</tt>
7214 type. Catching these arguments by value makes sense to enable decay.
7218 Next <tt>forward</tt> is used to move the <tt>ArgTypes</tt> as efficiently as
7219 possible, and also with minimum requirements (not <tt>CopyConstructible</tt>)
7220 to the type-erased functor. For object types, this will be a <tt>move</tt>. For
7221 reference type <tt>ArgTypes</tt>, this will be a copy. The end result <em>must</em> be
7222 that the following is a valid program:
7225 <blockquote><pre>#include <functional>
7226 #include <memory>
7227 #include <cassert>
7229 std::unique_ptr<int>
7230 f(std::unique_ptr<int> p, int& i)
7233 return std::move(p);
7239 std::function<std::unique_ptr<int>(std::unique_ptr<int>,
7241 std::unique_ptr<int> p = g(std::unique_ptr<int>(new int(1)), i);
7248 Tested in pre-concepts rvalue-ref-enabled compiler.
7253 In the example above, the first <tt>ArgType</tt> is <tt>unique_ptr<int></tt>
7254 and the second <tt>ArgType</tt> is <tt>int&</tt>. Both <em>must</em> work!
7260 2009-05-27 Daniel adds:
7266 in the 2009-05-01 comment of above mentioned issue Howard
7271 Recommends to replace the <tt>CopyConstructible</tt> requirement by a
7272 <tt>MoveConstructible</tt> requirement
7275 Says: "Furthermore, the constraint need not be applied in <tt>function</tt> if I
7276 understand correctly. Rather the client must apply the proper constraints
7281 I'm fine with (a), but I think comment (b) is incorrect, at least in the
7282 sense I read these sentences. Let's look at Howard's example code:
7285 <blockquote><pre>function<R(ArgTypes...)>::operator()(ArgTypes... arg) const
7288 throw bad_function_call();
7289 return (*f_)(std::forward<ArgTypes>(arg)...);
7294 In the constrained scope of this <tt>operator()</tt> overload the expression
7295 "<tt>(*f_)(std::forward<ArgTypes>(arg)...)</tt>" must be valid. How can it
7296 do so, if <tt>ArgTypes</tt> aren't at least <tt>MoveConstructible</tt>?
7306 Leave this open and wait until concepts are removed from the Working
7307 Draft so that we know how to write the proposed resolution in terms of
7308 diffs to otherwise stable text.
7317 Leave as open. Howard to provide wording. Howard welcomes any help.
7322 <p><b>Proposed resolution:</b></p>
7331 <h3><a name="816"></a>816. Should <tt>bind()</tt>'s returned functor have a nofail copy ctor when <tt>bind()</tt> is nofail?</h3>
7332 <p><b>Section:</b> 20.7.11.1.3 [func.bind.bind] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
7333 <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2008-02-08 <b>Last modified:</b> 2009-11-07</p>
7334 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#func.bind.bind">active issues</a> in [func.bind.bind].</p>
7335 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#func.bind.bind">issues</a> in [func.bind.bind].</p>
7336 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
7337 <p><b>Discussion:</b></p>
7339 Library Issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#527">527</a> notes that <tt>bind(f, t1, ..., tN)</tt>
7340 should be nofail when <tt>f, t1, ..., tN</tt> have nofail copy ctors.
7343 However, no guarantees are provided for the copy ctor of the functor
7344 returned by <tt>bind()</tt>. (It's guaranteed to have a copy ctor, which can
7345 throw implementation-defined exceptions: <tt>bind()</tt> returns a forwarding
7346 call wrapper, TR1 3.6.3/2. A forwarding call wrapper is a call wrapper,
7347 TR1 3.3/4. Every call wrapper shall be CopyConstructible, TR1 3.3/4.
7348 Everything without an exception-specification may throw
7349 implementation-defined exceptions unless otherwise specified, C++03
7353 Should the nofail guarantee requested by Library Issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#527">527</a> be extended
7354 to cover both calling <tt>bind()</tt> and copying the returned functor?
7363 <tt>tuple</tt> construction should probably have a similar guarantee.
7372 Howard to provide wording.
7376 Post Summit, Anthony provided wording.
7385 Part of all of this issue appears to be rendered moot
7386 by the proposed resolution to issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#817">817</a> (q.v.).
7387 We recommend the issues be considered simultaneously
7388 (or possibly even merged)
7389 to ensure there is no overlap.
7390 Move to Open, and likewise for issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#817">817</a>.
7399 Related to <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#817">817</a> (see below). Leave Open.
7408 Move to Ready. Decoupling from issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#817">817</a>.
7413 <p><b>Proposed resolution:</b></p>
7415 Add a new sentence to the end of paragraphs 2 and 4 of 20.7.11.1.3 [func.bind.bind]:
7420 -2- <i>Returns:</i> A forwarding call wrapper <tt>g</tt> with a weak result type (20.6.2). The effect of <tt>g(u1, u2,
7421 ..., uM)</tt> shall be <tt><i>INVOKE</i>(f, v1, v2, ..., vN, Callable<F cv,V1, V2, ..., VN>::result_type)</tt>, where <i>cv</i>
7422 represents the <i>cv</i>-qualifiers of <tt>g</tt> and the values and types of the bound arguments
7423 <tt>v1, v2, ..., vN</tt> are determined as specified below.
7424 <ins>The copy constructor and move constructor of the forwarding call wrapper shall throw an
7425 exception if and only if the corresponding constructor of <tt>F</tt> or any of the types
7426 in <tt>BoundArgs...</tt> throw an exception.</ins>
7430 -5- <i>Returns:</i> A forwarding call wrapper <tt>g</tt> with a nested type <tt>result_type</tt> defined as a synonym
7431 for <tt>R</tt>. The effect of <tt>g(u1, u2, ..., uM)</tt> shall be <tt><i>INVOKE</i>(f, v1, v2, ..., vN, R)</tt>, where the
7432 values and types of the bound arguments <tt>v1, v2, ..., vN</tt> are determined as specified below.
7433 <ins>The copy constructor and move constructor of the forwarding call wrapper shall throw an
7434 exception if and only if the corresponding constructor of <tt>F</tt> or any of the types
7435 in <tt>BoundArgs...</tt> throw an exception.</ins>
7445 <h3><a name="817"></a>817. <tt>bind</tt> needs to be moved</h3>
7446 <p><b>Section:</b> 20.7.11.1.3 [func.bind.bind] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
7447 <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2008-03-17 <b>Last modified:</b> 2009-11-08</p>
7448 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#func.bind.bind">active issues</a> in [func.bind.bind].</p>
7449 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#func.bind.bind">issues</a> in [func.bind.bind].</p>
7450 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
7451 <p><b>Discussion:</b></p>
7452 <p><b>Addresses US 72, JP 38 and DE 21</b></p>
7455 The functor returned by <tt>bind()</tt> should have a move constructor that
7456 requires only move construction of its contained functor and bound arguments.
7457 That way move-only functors can be passed to objects such as <tt>thread</tt>.
7460 This issue is related to issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#816">816</a>.
7468 <tt>bind</tt> should support move-only functors and bound arguments.
7477 add the move requirement for bind's return type.
7480 For example, assume following <tt>th1</tt> and <tt>th2</tt>,
7483 <blockquote><pre>void f(vector<int> v) { }
7485 vector<int> v{ ... };
7486 thread th1([v]{ f(v); });
7487 thread th2(bind(f, v));
7491 When function object are set to thread, <tt>v</tt> is moved to <tt>th1</tt>'s lambda
7492 expression in a Move Constructor of lambda expression because <tt>th1</tt>'s lambda
7493 expression has a Move Constructor. But <tt>bind</tt> of <tt>th2</tt>'s
7494 return type doesn't have the requirement of Move, so it may not
7498 Add the requirement of move to get rid of this useless copy.
7501 And also, add the <tt>MoveConstructible</tt> as well as <tt>CopyConstructible</tt>.
7510 The specification for bind claims twice that "the values and types for
7511 the bound arguments v1, v2, ..., vN are determined as specified below".
7512 No such specification appears to exist.
7521 Howard to provide wording.
7525 Post Summit Alisdair and Howard provided wording.
7531 Several issues are being combined in this resolution. They are all touching the
7532 same words so this is an attempt to keep one issue from stepping on another, and
7533 a place to see the complete solution in one place.
7538 <tt>bind</tt> needs to be "moved".
7541 20.7.11.1.3 [func.bind.bind]/p3, p6 and p7 were accidently removed from N2798.
7544 Issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#929">929</a> argues for a way to pass by && for
7545 efficiency but retain the decaying behavior of pass by value for the
7546 <tt>thread</tt> constructor. That same solution is applicable here.
7557 We were going to recommend moving this issue to Tentatively Ready
7558 until we noticed potential overlap with issue 816 (q.v.).
7562 and recommend both issues be considered together
7563 (and possibly merged).
7573 The proposed resolution uses concepts. Leave Open.
7582 Leave as Open. Howard to provide deconceptified wording.
7586 2009-11-07 Howard updates wording.
7592 <p><b>Proposed resolution:</b></p>
7594 Change 20.7 [function.objects] p2:
7597 <blockquote><pre>template<class F<del>n</del>, class... <del>Types</del> <ins>BoundArgs</ins>>
7598 <i>unspecified</i> bind(F<del>n</del><ins>&&</ins>, <del>Types</del> <ins>BoundArgs&&</ins>...);
7599 template<class R, class F<del>n</del>, class... <del>Types</del> <ins>BoundArgs</ins>>
7600 <i>unspecified</i> bind(F<del>n</del><ins>&&</ins>, <del>Types</del> <ins>BoundArgs&&</ins>...);
7604 Change 20.7.11.1.3 [func.bind.bind]:
7614 Let <tt>FD</tt> be a synonym for the type <tt>decay<F>::type</tt>.
7617 Let <tt>fd</tt> be an lvalue of type <tt>FD</tt> constructed from
7618 <tt>std::forward<F>(f)</tt>.
7621 Let <tt>Ti</tt> be a synonym for the i<sup><i>th</i></sup> type in the
7622 parameter pack <tt>BoundArgs</tt>.
7625 Let <tt>TiD</tt> be a synonym for the type <tt>decay<Ti>::type</tt>.
7628 Let <tt>ti</tt> be the i<sup><i>th</i></sup> argument in <tt>bound_args</tt>.
7631 Let <tt>tid</tt> be an lvalue of type <tt>TiD</tt> constructed from
7632 <tt>std::forward<Ti>(ti)</tt>.
7636 <pre>template<class F, class... BoundArgs>
7637 <i>unspecified</i> bind(F<ins>&&</ins> f, BoundArgs<ins>&&</ins>... bound_args);
7642 -1- <i>Requires:</i>
7643 <ins><tt>is_constructible<FD, F>::value</tt>
7644 shall be <tt>true</tt>.</ins>
7645 <ins><tt>is_constructible<TiD, Ti>::value</tt>
7646 shall be <tt>true</tt></ins>.
7647 <del><tt>F</tt> and each <tt>Ti</tt> in
7648 <tt>BoundArgs</tt> shall be CopyConstructible.</del>
7649 <tt><i>INVOKE</i>(f<ins>d</ins>, w1, w2, ..., wN)</tt> (20.7.2 [func.require]) shall be a valid expression for some values
7650 <i>w1, w2, ..., wN</i>, where <tt>N == sizeof...(bound_args)</tt>.
7653 -2- <i>Returns:</i> A forwarding call wrapper <tt>g</tt> with a weak
7654 result type (20.7.2 [func.require]). The effect of <tt>g(u1, u2,
7655 ..., uM)</tt> shall be <tt><i>INVOKE</i>(f<ins>d</ins>, v1, v2, ..., vN,
7656 result_of<F<ins>D</ins> <i>cv</i> (V1, V2, ..., VN)>::type)</tt>, where
7657 <i>cv</i> represents the <i>cv</i>-qualifiers of <tt>g</tt> and the
7658 values and types of the bound arguments <tt>v1, v2, ..., vN</tt> are
7659 determined as specified below.
7660 <ins>The copy constructor and move constructor of the forwarding call wrapper shall throw an
7661 exception if and only if the corresponding constructor of <tt>FD</tt> or any of the types
7662 <tt>TiD</tt> throw an exception.</ins>
7665 -3- <i>Throws:</i> Nothing unless the <del>copy</del>
7666 construct<ins>ion</ins><del>or</del> of
7667 <tt><del>F</del><ins>fd</ins></tt> or of one of the <ins>values
7668 <tt>tid</tt></ins> <del>types in the <tt>BoundArgs...</tt> pack
7669 expansion</del> throws an exception.
7673 <i>Remarks:</i> The <i>unspecified</i> return type shall be
7674 <tt>MoveConstructible</tt>. If all of <tt>FD</tt> and <tt>TiD</tt> are
7675 <tt>CopyConstructible</tt> then the <i>unspecified</i> return type shall
7676 be <tt>CopyConstructible</tt>. [<i>Note:</i> This implies that all of
7677 <tt>FD</tt> and <tt>TiD</tt> shall be <tt>MoveConstructible</tt> —
7683 <pre>template<class R, class F, class... BoundArgs>
7684 <i>unspecified</i> bind(F<ins>&&</ins> f, BoundArgs<ins>&&</ins>... bound_args);
7689 -4- <i>Requires:</i>
7690 <ins><tt>is_constructible<FD, F>::value</tt>
7691 shall be <tt>true</tt>.</ins>
7692 <ins><tt>is_constructible<TiD, Ti>::value</tt>
7693 shall be <tt>true</tt></ins>.
7694 <del><tt>F</tt> and each <tt>Ti</tt> in
7695 <tt>BoundArgs</tt> shall be CopyConstructible.</del>
7696 <tt><i>INVOKE</i>(f<ins>d</ins>, w1,
7697 w2, ..., wN)</tt> shall be a valid expression for some values <i>w1, w2,
7698 ..., wN</i>, where <tt>N == sizeof...(bound_args)</tt>.
7701 -5- <i>Returns:</i> A forwarding call wrapper <tt>g</tt> with a nested
7702 type <tt>result_type</tt> defined as a synonym for <tt>R</tt>. The
7703 effect of <tt>g(u1, u2, ..., uM)</tt> shall be <tt><i>INVOKE</i>(f<ins>d</ins>, v1,
7704 v2, ..., vN, R)</tt>, where the values and types of the bound arguments
7705 <tt>v1, v2, ..., vN</tt> are determined as specified below.
7706 <ins>The copy constructor and move constructor of the forwarding call wrapper shall throw an
7707 exception if and only if the corresponding constructor of <tt>FD</tt> or any of the types
7708 <tt>TiD</tt> throw an exception.</ins>
7711 -6- <i>Throws:</i> Nothing unless the <del>copy</del>
7712 construct<ins>ion</ins><del>or</del> of
7713 <tt><del>F</del><ins>fd</ins></tt> or of one of the <ins>values
7714 <tt>tid</tt></ins> <del>types in the <tt>BoundArgs...</tt> pack
7715 expansion</del> throws an exception.
7719 <i>Remarks:</i> The <i>unspecified</i> return type shall be
7720 <tt>MoveConstructible</tt>. If all of <tt>FD</tt> and <tt>TiD</tt> are
7721 <tt>CopyConstructible</tt> then the <i>unspecified</i> return type shall
7722 be <tt>CopyConstructible</tt>. [<i>Note:</i> This implies that all of
7723 <tt>FD</tt> and <tt>TiD</tt> shall be <tt>MoveConstructible</tt> —
7730 -7- The values of the <i>bound arguments</i> <tt>v1, v2, ..., vN</tt> and
7731 their corresponding types <tt>V1, V2, ..., VN</tt> depend on the type<ins>s
7732 <tt>TiD</tt> derived from</ins>
7733 <del>of the corresponding argument <tt>ti</tt> in <tt>bound_args</tt> of type
7734 <tt>Ti</tt> in <tt>BoundArgs</tt> in</del>
7735 the call to <tt>bind</tt> and the
7736 <i>cv</i>-qualifiers <i>cv</i> of the call wrapper <tt>g</tt> as
7742 if <tt><del>ti</del> <ins>TiD</ins></tt> <del>is of</del> <ins>has</ins>
7743 type <tt>reference_wrapper<T></tt> the argument is
7744 <tt>ti<ins>d</ins>.get()</tt> and its type <tt>Vi</tt> is
7749 <tt>std::is_bind_expression<Ti<ins>D</ins>>::value</tt> is
7750 <tt>true</tt> the argument is <tt>ti<ins>d</ins>(u1, u2, ..., uM)</tt>
7751 and its type <tt>Vi</tt> is <tt>result_of<Ti<ins>D</ins> <i>cv</i>
7752 (U1&, U2&, ..., UM&)>::type</tt>;
7755 if the value <tt>j</tt> of
7756 <tt>std::is_placeholder<Ti<ins>D</ins>>::value</tt> is not zero
7757 the argument is <tt>std::forward<Uj>(uj)</tt> and its type
7758 <tt>Vi</tt> is <tt>Uj&&</tt>;
7761 otherwise the value is <tt>ti<ins>d</ins></tt> and its type <tt>Vi</tt>
7762 is <tt>Ti<ins>D</ins> <i>cv</i> &</tt>.
7774 <h3><a name="819"></a>819. rethrow_if_nested</h3>
7775 <p><b>Section:</b> 18.8.6 [except.nested] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
7776 <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2008-03-25 <b>Last modified:</b> 2009-10-23</p>
7777 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#except.nested">active issues</a> in [except.nested].</p>
7778 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#except.nested">issues</a> in [except.nested].</p>
7779 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
7780 <p><b>Discussion:</b></p>
7782 Looking at the wording I submitted for <tt>rethrow_if_nested</tt>, I don't think I
7787 The current wording says:
7791 <pre>template <class E> void rethrow_if_nested(const E& e);
7795 <i>Effects:</i> Calls <tt>e.rethrow_nested()</tt> only if <tt>e</tt>
7796 is publicly derived from <tt>nested_exception</tt>.
7802 This is trying to be a bit subtle, by requiring <tt>e</tt> (not <tt>E</tt>) to be publicly
7803 derived from <tt>nested_exception</tt> the idea is that a <tt>dynamic_cast</tt> would be
7804 required to be sure. Unfortunately, if <tt>e</tt> is dynamically but not statically
7805 derived from <tt>nested_exception</tt>, <tt>e.rethrow_nested()</tt> is ill-formed.
7814 Alisdair was volunteered to provide wording.
7823 Leave as Open. Alisdair to provide wording.
7828 <p><b>Proposed resolution:</b></p>
7835 <h3><a name="834"></a>834. Unique_ptr::pointer requirements underspecified</h3>
7836 <p><b>Section:</b> 20.8.14.2 [unique.ptr.single] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
7837 <b>Submitter:</b> Daniel Krügler <b>Opened:</b> 2008-05-14 <b>Last modified:</b> 2009-10-26</p>
7838 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#unique.ptr.single">active issues</a> in [unique.ptr.single].</p>
7839 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#unique.ptr.single">issues</a> in [unique.ptr.single].</p>
7840 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
7841 <p><b>Discussion:</b></p>
7843 Issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#673">673</a> (including recent updates by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#821">821</a>) proposes a useful
7844 extension point for <tt>unique_ptr</tt> by granting support for an optional
7845 <tt>deleter_type::pointer</tt> to act as pointer-like replacement for <tt>element_type*</tt>
7846 (In the following: <tt>pointer</tt>).
7849 Unfortunately no requirements are specified for the type <tt>pointer</tt> which has
7850 impact on at least two key features of <tt>unique_ptr</tt>:
7854 <li>Operational fail-safety.</li>
7855 <li>(Well-)Definedness of expressions.</li>
7859 <tt>Unique_ptr</tt> specification makes great efforts to require that essentially *all*
7860 operations cannot throw and therefore adds proper wording to the affected
7861 operations of the deleter as well. If user-provided <tt>pointer</tt>-emulating types
7862 ("smart pointers") will be allowed, either *all* throw-nothing clauses have to
7863 be replaced by weaker "An exception is thrown only if <tt>pointer</tt>'s {op} throws
7864 an exception"-clauses or it has to be said explicitly that all used
7866 <tt>pointer</tt> are required *not* to throw. I understand the main focus of <tt>unique_ptr</tt>
7867 to be as near as possible to the advantages of native pointers which cannot
7868 fail and thus strongly favor the second choice. Also, the alternative position
7869 would make it much harder to write safe and simple template code for
7870 <tt>unique_ptr</tt>. Additionally, I assume that a general statement need to be given
7871 that all of the expressions of <tt>pointer</tt> used to define semantics are required to
7872 be well-formed and well-defined (also as back-end for <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#762">762</a>).
7882 Howard: We maybe need a core concept <tt>PointerLike</tt>, but we don't need the
7883 arithmetic (see <tt>shared_ptr</tt> vs. <tt>vector<T>::iterator</tt>.
7886 Howard will go through and enumerate the individual requirements wrt. <tt>pointer</tt> for each member function.
7900 2009-10-15 Alisdair pulls from Ready:
7906 I hate to pull an issue out of Ready status, but I don't think 834 is
7911 For reference the proposed resolution is to add the following words:
7915 <tt>unique_ptr<T, D>::pointer</tt>'s operations shall be
7916 well-formed, shall have well defined behavior, and shall not throw
7921 This leaves me with a big question : which operations?
7925 Are all pointer operations required to be nothrow, including operations
7926 that have nothing to do with interactions with <tt>unique_ptr</tt>? This was
7927 much simpler with concepts where we could point to operations within a
7928 certain concept, and so nail down the interactions.
7933 2009-10-15 Daniel adds:
7938 I volunteer to prepare a more fine-grained solution, but I would like
7939 to ask for feedback that helps me doing so. If this question is asked
7940 early in the meeting I might be able to fix it within the week, but I
7941 cannot promise that now.
7950 Leave in open. Daniel to provide wording as already suggested.
7956 <p><b>Proposed resolution:</b></p>
7958 Add the following sentence just at the end of the newly proposed
7959 20.8.14.2 [unique.ptr.single]/p. 3:
7963 <tt>unique_ptr<T, D>::pointer</tt>'s operations shall be well-formed, shall have well
7964 defined behavior, and shall not throw exceptions.
7972 <h3><a name="835"></a>835. tying two streams together (correction to DR 581)</h3>
7973 <p><b>Section:</b> 27.5.4.2 [basic.ios.members] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
7974 <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2008-05-17 <b>Last modified:</b> 2009-10-20</p>
7975 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#basic.ios.members">active issues</a> in [basic.ios.members].</p>
7976 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#basic.ios.members">issues</a> in [basic.ios.members].</p>
7977 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
7978 <p><b>Discussion:</b></p>
7982 issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#581">581</a>,
7983 now integrated into the working paper, overlooks a couple of minor
7989 First, being an unformatted function once again, <code>flush()</code>
7990 is required to create a sentry object whose constructor must, among
7991 other things, flush the tied stream. When two streams are tied
7992 together, either directly or through another intermediate stream
7993 object, flushing one will also cause a call to <code>flush()</code> on
7994 the other tied stream(s) and vice versa, ad infinitum. The program
7995 below demonstrates the problem.
8000 Second, as Bo Persson notes in his
8001 comp.lang.c++.moderated <a href="http://groups.google.com/group/comp.lang.c++.moderated/tree/browse_frm/thread/f2187794e9cc036d/305df31dc583054a">post</a>,
8002 for streams with the <code>unitbuf</code> flag set such
8003 as <code>std::stderr</code>, the destructor of the sentry object will
8004 again call <code>flush()</code>. This seems to create an infinite
8005 recursion for <code>std::cerr << std::flush;</code>
8009 <pre>#include <iostream>
8013 std::cout.tie (&std::cerr);
8014 std::cerr.tie (&std::cout);
8015 std::cout << "cout\n";
8016 std::cerr << "cerr\n";
8026 We agree with the proposed resolution.
8031 2009-05-26 Daniel adds:
8037 I think that the most recently suggested change in
8038 27.7.2.4 [ostream::sentry] need some further word-smithing. As
8039 written, it would make the behavior undefined, if under
8040 conditions when <tt>pubsync()</tt> should be called, but when
8041 in this scenario <tt>os.rdbuf()</tt> returns 0.
8044 This case is explicitly handled in <tt>flush()</tt> and needs to be
8045 taken care of. My suggested fix is:
8049 If <tt>((os.flags() & ios_base::unitbuf) && !uncaught_exception()</tt>
8050 <ins><tt>&& os.rdbuf() != 0</tt></ins>) is true, calls <del><tt>os.flush()</tt></del>
8051 <ins><tt>os.rdbuf()->pubsync()</tt></ins>.
8055 Two secondary questions are:
8060 Should <tt>pubsync()</tt> be invoked in any case or shouldn't a
8061 base requirement for this trial be that <tt>os.good() == true</tt>
8062 as required in the original <tt>flush()</tt> case?
8065 Since <tt>uncaught_exception()</tt> is explicitly tested, shouldn't
8066 a return value of -1 of <tt>pubsync()</tt> produce <tt>setstate(badbit)</tt>
8067 (which may throw <tt>ios_base::failure</tt>)?
8079 Daniel volunteered to modify the proposed resolution to address his two questions.
8087 2009-07-26 Daniel provided wording. Moved to Review.
8092 2009-10-13 Daniel adds:
8097 This proposed wording is written to match the outcome
8098 of <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#397">397</a>.
8107 Move to Open. Martin to propose updated wording that will also resolve
8108 issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#397">397</a> consistently.
8113 <p><b>Proposed resolution:</b></p>
8116 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2960.pdf">N2960</a>
8124 Just before 27.5.4.2 [basic.ios.members]/2 insert a new paragraph:
8128 <ins><i>Requires:</i> If <tt>(tiestr != 0)</tt> is <tt>true</tt>, <tt>tiestr</tt> must not be reachable
8129 by traversing the linked list of tied stream objects starting from
8130 <tt>tiestr->tie()</tt>.</ins>
8136 Change 27.7.2.4 [ostream::sentry]/4 as indicated:
8140 If <tt>((os.flags() & ios_base::unitbuf) && !uncaught_exception()<ins>&&
8141 os.good()</ins>)</tt> is <tt>true</tt>, calls <del><tt>os.flush()</tt></del>
8142 <ins><tt>os.rdbuf()->pubsync()</tt>. If that function returns -1 sets
8143 <tt>badbit</tt> in <tt>os.rdstate()</tt> without propagating an exception</ins>.
8155 <h3><a name="836"></a>836.
8156 effects of <code>money_base::space</code> and
8157 <code>money_base::none</code> on <code>money_get</code>
8159 <p><b>Section:</b> 22.4.6.1.2 [locale.money.get.virtuals] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
8160 <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2008-05-17 <b>Last modified:</b> 2009-10-21</p>
8161 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#locale.money.get.virtuals">issues</a> in [locale.money.get.virtuals].</p>
8162 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
8163 <p><b>Duplicate of:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#670">670</a></p>
8164 <p><b>Discussion:</b></p>
8168 In paragraph 2, 22.4.6.1.2 [locale.money.get.virtuals] specifies the following:
8173 Where <code>space</code> or <code>none</code> appears in the format
8174 pattern, except at the end, optional white space (as recognized
8175 by <code>ct.is</code>) is consumed after any required space.
8180 This requirement can be (and has been) interpreted two mutually
8181 exclusive ways by different readers. One possible interpretation
8189 where <code>money_base::space</code> appears in the format, at least
8190 one space is required, and
8195 where <code>money_base::none</code> appears in the format, space is
8196 allowed but not required.
8208 where either <code>money_base::space</code> or <code>money_base::none</code> appears in the format, white space is optional.
8218 Martin will revise the proposed resolution.
8228 There is a noun missing from the proposed resolution. It's not clear
8229 that the last sentence would be helpful, even if the word were not
8233 In either case, any required MISSINGWORD followed by all optional whitespace (as recognized by ct.is()) is consumed.
8236 Strike this sentence and move to Review.
8256 <p><b>Proposed resolution:</b></p>
8259 I propose to change the text to make it clear that the first
8260 interpretation is intended, that is, to make following change to
8261 22.4.6.1.2 [locale.money.get.virtuals], p2:
8267 When <code><ins>money_base::</ins>space</code>
8268 or <code><ins>money_base::</ins>none</code> appears <ins>as the last
8269 element </ins>in the format pattern, <del>except at the end, optional
8270 white space (as recognized by <code>ct.is</code>) is consumed after
8271 any required space.</del> <ins>no white space is consumed. Otherwise,
8272 where <code>money_base::space</code> appears in any of the initial
8273 elements of the format pattern, at least one white space character is
8274 required. Where <code>money_base::none</code> appears in any of the
8275 initial elements of the format pattern, white space is allowed but not
8277 If <code>(str.flags() & str.showbase)</code> is <code>false</code>, ...
8285 <h3><a name="854"></a>854. <tt>default_delete</tt> converting constructor underspecified</h3>
8286 <p><b>Section:</b> 20.8.14.1.1 [unique.ptr.dltr.dflt] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
8287 <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2008-06-18 <b>Last modified:</b> 2009-10-21</p>
8288 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
8289 <p><b>Discussion:</b></p>
8291 No relationship between <tt>U</tt> and <tt>T</tt> in the converting constructor for <tt>default_delete</tt> template.
8294 Requirements: <tt>U*</tt> is convertible to <tt>T*</tt> and <tt>has_virtual_destructor<T></tt>;
8295 the latter should also become a concept.
8298 Rules out cross-casting.
8301 The requirements for <tt>unique_ptr</tt> conversions should be the same as those on the deleter.
8305 Howard adds 2008-11-26:
8311 I believe we need to be careful to not outlaw the following use case, and
8312 I believe the current proposed wording
8313 (<tt>requires Convertible<U*, T*> && HasVirtualDestructor<T></tt>) does so:
8316 <blockquote><pre>#include <memory>
8320 std::unique_ptr<int> p1(new int(1));
8321 std::unique_ptr<const int> p2(move(p1));
8323 <font color="#c80000">// *p2 = i; // should not compile</font>
8328 I've removed "<tt>&& HasVirtualDestructor<T></tt>" from the
8329 <tt>requires</tt> clause in the proposed wording.
8341 Alisdair: This issue has to stay in review pending a paper constraining
8342 <tt>unique_ptr</tt>.
8345 Consensus: We agree with the resolution, but <tt>unique_ptr</tt> needs
8346 to be constrained, too.
8349 Recommend Keep in Review.
8358 Keep in Review status for the reasons cited.
8368 The proposed resolution uses concepts. Howard needs to rewrite the
8369 proposed resolution.
8377 2009-07-26 Howard provided rewritten proposed wording and moved to Review.
8392 <p><b>Proposed resolution:</b></p>
8394 Add after 20.8.14.1.1 [unique.ptr.dltr.dflt], p1:
8397 <blockquote><pre>template <class U> default_delete(const default_delete<U>& other);
8401 -1- <i>Effects:</i> ...
8404 <i>Remarks:</i> This constructor shall participate in overload resolution
8405 if and only if <tt>U*</tt> is implicitly convertible to <tt>T*</tt>.
8416 <h3><a name="860"></a>860. Floating-Point State</h3>
8417 <p><b>Section:</b> 26 [numerics] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
8418 <b>Submitter:</b> Lawrence Crowl <b>Opened:</b> 2008-06-23 <b>Last modified:</b> 2009-10-23</p>
8419 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#numerics">issues</a> in [numerics].</p>
8420 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
8421 <p><b>Discussion:</b></p>
8423 There are a number of functions that affect the floating point state.
8424 These function need to be thread-safe, but I'm unsure of the right
8425 approach in the standard, as we inherit them from C.
8435 Nick: I think we already say that these functions do not introduce data
8436 races; see 17.6.5.6/20
8439 Pete: there's more to it than not introducing data races; are these
8440 states maintained per thread?
8443 Howard: 21.5/14 says that strtok and strerror are not required to avoid
8444 data races, and 20.9/2 says the same about asctime, gmtime, ctime, and
8448 Nick: POSIX has a list of not-safe functions. All other functions are
8449 implicitly thread safe.
8452 Lawrence is to form a group between meetings to attack this issue. Nick
8453 and Tom volunteered to work with Lawrence.
8467 Hans: Sane oses seem ok. Sensible thing is implementable and makes sense.
8470 Nick: Default wording seems to cover this? Hole in POSIX, these
8471 functions need to be added to list of thread-unsafe functions.
8474 Lawrence: Not sufficient, not "thread-safe" per our definition, but
8475 think of state as a thread-local variable. Need something like "these
8476 functions only affect state in the current thread."
8479 Hans: Suggest the following wording: "The floating point environment is
8480 maintained per-thread."
8483 Walter: Any other examples of state being thread safe that are not
8484 already covered elsewhere?
8487 Have thread unsafe functions paper which needs to be updated. Should
8488 just fold in 26.3 [cfenv] functions.
8491 Recommend Open. Lawrence instead suggests leaving it open until we have
8492 suitable wording that may or may not include the thread local
8498 2009-09-23 Hans provided wording.
8503 If I understand the history correctly, Nick, as the Posix liaison,
8504 should probably get a veto on this, since I think it came from Posix (?)
8505 via WG14 and should probably really be addressed there (?). But I think
8506 we are basically in agreement that there is no other sane way to do
8507 this, and hence we don't have to worry too much about stepping on toes.
8508 As far as I can tell, this same issue also exists in the latest Posix
8523 <p><b>Proposed resolution:</b></p>
8525 Add at the end of 26.3.1 [cfenv.syn]:
8530 2 The header defines all functions, types, and macros the same as C99 7.6.
8534 A separate floating point environment shall be maintained for each
8535 thread. Each function accesses the environment corresponding to its
8545 <h3><a name="861"></a>861. Incomplete specification of EqualityComparable for std::forward_list</h3>
8546 <p><b>Section:</b> 23.2 [container.requirements] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
8547 <b>Submitter:</b> Daniel Krügler <b>Opened:</b> 2008-06-24 <b>Last modified:</b> 2009-10-24</p>
8548 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#container.requirements">active issues</a> in [container.requirements].</p>
8549 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#container.requirements">issues</a> in [container.requirements].</p>
8550 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
8551 <p><b>Discussion:</b></p>
8553 Table 89, Container requirements, defines <tt>operator==</tt> in terms of the container
8554 member function <tt>size()</tt> and the algorithm <tt>std::equal</tt>:
8558 <tt>==</tt> is an equivalence relation. <tt>a.size() == b.size() &&
8559 equal(a.begin(), a.end(), b.begin()</tt>
8563 The new container <tt>forward_list</tt> does not provide a <tt>size</tt> member function
8564 by design but does provide <tt>operator==</tt> and <tt>operator!=</tt> without specifying it's semantic.
8567 Other parts of the (sequence) container requirements do also depend on
8568 <tt>size()</tt>, e.g. <tt>empty()</tt>
8569 or <tt>clear()</tt>, but this issue explicitly attempts to solve the missing
8570 <tt>EqualityComparable</tt> specification,
8571 because of the special design choices of <tt>forward_list</tt>.
8574 I propose to apply one of the following resolutions, which are described as:
8579 Provide a definition, which is optimal for this special container without
8580 previous size test. This choice prevents two <tt>O(N)</tt> calls of <tt>std::distance()</tt>
8581 with the corresponding container ranges and instead uses a special
8582 <tt>equals</tt> implementation which takes two container ranges instead of 1 1/2.
8585 The simple fix where the usual test is adapted such that <tt>size()</tt> is replaced
8586 by <tt>distance</tt> with corresponding performance disadvantages.
8590 Both proposal choices are discussed, the preferred choice of the author is
8601 There's an Option C: change the requirements table to use distance().
8604 LWG found Option C acceptable.
8607 Martin will draft the wording for Option C.
8617 Martin provided wording for Option C.
8627 Other operational semantics (see, for example, Tables 82 and 83) are
8628 written in terms of a container's size() member. Daniel to update
8629 proposed resolution C.
8632 Howard: Commented out options A and B.
8638 2009-07-26 Daniel updated proposed resolution C.
8648 Mark NAD Editorial. Addressed by
8649 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2986.pdf">N2986</a>.
8659 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2986.pdf">N2986</a>
8660 was rejected in full committee on procedural grounds.
8665 <p><b>Proposed resolution:</b></p>
8674 The changes are relative to
8675 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2914.pdf">N2914</a>
8683 In 23.2.1 [container.requirements.general] change Table 80 -- Container requirements as indicated:
8689 Change the text in the Assertion/note column in the row for "<tt>X u</tt>;"
8694 post: <tt>u.<del>size() == 0</del><ins>empty() == true</ins></tt>
8700 Change the text in the Assertion/note column in the row for "<tt>X();</tt>"
8705 <tt>X().<del>size() == 0</del><ins>empty() == true</ins></tt>
8711 Change the text in the Operational Semantics column in the row for
8712 "<tt>a == b</tt>" as follows:
8715 <tt>==</tt> is an equivalence relation.
8716 <tt><del>a.size()</del><ins>distance(a.begin(), a.end())</ins> ==
8717 <del>b.size()</del><ins>distance(b.begin(), b.end())</ins> &&
8718 equal(a.begin(), a.end(), b.begin())</tt>
8724 Change the text in the Operational Semantics column in the row for
8725 "<tt>a.size()</tt>" as follows:
8729 <tt><del>a.end() - a.begin()</del><ins>distance(a.begin(), a.end())</ins></tt>
8735 Change the text in the Operational Semantics column in the row for
8736 "<tt>a.max_size()</tt>" as follows:
8740 <tt><del>size()</del><ins>distance(begin(), end())</ins></tt> of the largest
8747 Change the text in the Operational Semantics column in the row for
8748 "<tt>a.empty()</tt>" as follows:
8752 <tt><del>a.size() == 0</del><ins>a.begin() == a.end()</ins></tt>
8760 In 23.2.1 [container.requirements.general] change Table 82 -- Allocator-aware container requirements as indicated:
8766 Change the text in the Assertion/note column in the row for "<tt>X() /
8767 X u;</tt>" as follows:
8771 <i>Requires:</i> <tt>A</tt> is <tt>DefaultConstructible</tt> post: <tt><del>u.size() ==
8772 0</del><ins>u.empty() == true</ins></tt>, <tt>get_allocator() == A()</tt>
8778 Change the text in the Assertion/note column in the row for "<tt>X(m) /
8779 X u(m);</tt>" as follows:
8783 post: <tt><del>u.size() == 0</del><ins>u.empty() == true</ins>,
8784 get_allocator() == m</tt>
8792 In 23.2.3 [sequence.reqmts] change Table 83 -- Sequence container requirements as indicated:
8798 Change the text in the Assertion/note column in the row for "<tt>X(n,
8799 t) / X a(n, t)</tt>" as follows:
8803 post: <tt><del>size()</del><ins>distance(begin(), end())</ins> == n [..]</tt>
8809 Change the text in the Assertion/note column in the row for "<tt>X(i,
8810 j) / X a(i, j)</tt>" as follows:
8814 [..] post: <del><tt>size() ==</tt> distance between <tt>i</tt> and
8815 <tt>j</tt></del><ins><tt>distance(begin(), end()) == distance(i, j)</tt></ins> [..]
8821 Change the text in the Assertion/note column in the row for
8822 "<tt>a.clear()</tt>" as follows:
8825 <tt><ins>a.</ins>erase(<ins>a.</ins>begin(), <ins>a.</ins>end())</tt> post:
8826 <tt><del>size() == 0</del><ins>a.empty() == true</ins></tt>
8834 In 23.2.4 [associative.reqmts] change Table 85 -- Associative container requirements as indicated:
8838 Not every occurrence of <tt>size()</tt> was replaced, because all current
8839 associative containers
8840 have a <tt>size</tt>. The following changes ensure consistency regarding the
8841 semantics of "<tt>erase</tt>"
8842 for all tables and adds some missing objects
8849 Change the text in the Complexity column in the row for
8850 "<tt>a.insert(i, j)</tt>" as follows:
8853 <tt>N log(<ins>a.</ins>size() + N)</tt> <del>(<tt>N</tt> is the distance from <tt>i</tt> to
8854 <tt>j</tt>)</del><ins> where <tt>N == distance(i, j)</tt></ins>
8860 Change the text in the Complexity column in the row for
8861 "<tt>a.erase(k)</tt>" as follows:
8864 <tt>log(<ins>a.</ins>size()) + <ins>a.</ins>count(k)</tt>
8870 Change the text in the Complexity column in the row for
8871 "<tt>a.erase(q1, q2)</tt>" as follows:
8875 <tt>log(<ins>a.</ins>size()) + N</tt> where <tt>N</tt> <del>is the distance from <tt>q1</tt>
8876 to <tt>q2</tt></del>
8877 <ins><tt>== distance(q1, q2)</tt></ins>.
8883 Change the text in the Assertion/note column in the row for
8884 "<tt>a.clear()</tt>" as follows:
8888 <tt><ins>a.</ins>erase(a.begin(),a.end())</tt> post: <tt><del>size() ==
8889 0</del><ins>a.empty() == true</ins></tt>
8895 Change the text in the Complexity column in the row for "<tt>a.clear()</tt>"
8900 linear in <tt><ins>a.</ins>size()</tt>
8906 Change the text in the Complexity column in the row for
8907 "<tt>a.count(k)</tt>" as follows:
8911 <tt>log(<ins>a.</ins>size()) + <ins>a.</ins>count(k)</tt>
8919 In 23.2.5 [unord.req] change Table 87 -- Unordered associative container requirements as indicated:
8922 The same rational as for Table 85 applies here
8929 Change the text in the Assertion/note column in the row for
8930 "<tt>a.clear()</tt>" as follows:
8934 [..] Post: <tt>a.<del>size() == 0</del><ins>empty() == true</ins></tt>
8949 <h3><a name="865"></a>865. More algorithms that throw away information</h3>
8950 <p><b>Section:</b> 25.3.6 [alg.fill], 25.3.7 [alg.generate] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
8951 <b>Submitter:</b> Daniel Krügler <b>Opened:</b> 2008-07-13 <b>Last modified:</b> 2009-10-23</p>
8952 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
8953 <p><b>Discussion:</b></p>
8955 In regard to library defect <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#488">488</a> I found some more algorithms which
8956 unnecessarily throw away information. These are typically algorithms,
8957 which sequentially write into an <tt>OutputIterator</tt>, but do not return the
8958 final value of this output iterator. These cases are:
8963 <pre>template<class OutputIterator, class Size, class T>
8964 void fill_n(OutputIterator first, Size n, const T& value);</pre></li>
8967 <pre>template<class OutputIterator, class Size, class Generator>
8968 void generate_n(OutputIterator first, Size n, Generator gen);</pre></li>
8971 In both cases the minimum requirements on the iterator are
8972 <tt>OutputIterator</tt>, which means according to the requirements of
8973 24.2.2 [output.iterators]/2 that only single-pass iterations are guaranteed.
8974 So, if users of <tt>fill_n</tt> and <tt>generate_n</tt> have *only* an <tt>OutputIterator</tt>
8975 available, they have no chance to continue pushing further values
8976 into it, which seems to be a severe limitation to me.
8980 Post Summit Daniel "conceptualized" the wording.
8990 Alisdair likes the idea, but has concerns about the specific wording
8991 about the returns clauses.
8994 Alan notes this is a feature request.
8997 Bill notes we have made similar changes to other algorithms.
9010 We have a consensus for moving forward on this issue, but Daniel needs
9015 2009-07-25 Daniel provided non-concepts wording.
9030 <p><b>Proposed resolution:</b></p>
9035 Replace the current declaration of <tt>fill_n</tt> in 25 [algorithms]/2, header
9036 <tt><algorithm></tt> synopsis and in 25.3.6 [alg.fill] by
9039 <blockquote><pre>template<class OutputIterator, class Size, class T>
9040 <del>void</del><ins>OutputIterator</ins> fill_n(OutputIterator first, Size n, const T& value);
9044 Just after the effects clause add a new returns clause saying:
9048 <ins><i>Returns:</i> For <tt>fill_n</tt> and positive <tt>n</tt>, returns <tt>first + n</tt>. Otherwise
9049 returns <tt>first</tt> for <tt>fill_n</tt>.</ins>
9055 Replace the current declaration of <tt>generate_n</tt> in 25 [algorithms]/2,
9056 header <tt><algorithm></tt> synopsis and in 25.3.7 [alg.generate] by
9059 <blockquote><pre>template<class OutputIterator, class Size, class Generator>
9060 <del>void</del><ins>OutputIterator</ins> generate_n(OutputIterator first, Size n, Generator gen);
9064 Just after the effects clause add a new returns clause saying:
9068 <ins>For <tt>generate_n</tt> and positive <tt>n</tt>, returns <tt>first + n</tt>. Otherwise
9069 returns <tt>first</tt> for <tt>generate_n</tt>.</ins>
9081 <h3><a name="868"></a>868. default construction and value-initialization</h3>
9082 <p><b>Section:</b> 23 [containers] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
9083 <b>Submitter:</b> Alberto Ganesh Barbati <b>Opened:</b> 2008-07-22 <b>Last modified:</b> 2009-10-20</p>
9084 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#containers">active issues</a> in [containers].</p>
9085 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#containers">issues</a> in [containers].</p>
9086 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
9087 <p><b>Discussion:</b></p>
9089 The term "default constructed" is often used in wording that predates
9090 the introduction of the concept of value-initialization. In a few such
9091 places the concept of value-initialization is more correct than the
9092 current wording (for example when the type involved can be a built-in)
9093 so a replacement is in order. Two of such places are already covered by
9094 issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#867">867</a>. This issue deliberately addresses the hopefully
9095 non-controversial changes in the attempt of being approved more quickly.
9096 A few other occurrences (for example in <tt>std::tuple</tt>,
9097 <tt>std::reverse_iterator</tt> and <tt>std::move_iterator</tt>) are left to separate
9098 issues. For <tt>std::reverse_iterator</tt>, see also issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#408">408</a>. This issue is
9099 related with issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#724">724</a>.
9109 The list provided in the proposed resolution is not complete. James
9110 Dennett will review the library and provide a complete list and will
9111 double-check the vocabulary.
9114 This issue relates to Issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#886">886</a> tuple construction
9125 The proposed resolution is incomplete.
9128 Move to Tentatively NAD Future. Howard will contact Ganesh for wording.
9129 If wording is forthcoming, Howard will move it back to Review.
9134 2009-07-18 Ganesh updated the proposed wording.
9140 Howard: Moved back to Review. Note that 20.2.1 [utility.arg.requirements]
9141 refers to a section that is not in the current working paper, but does refer to
9142 a section that we expect to reappear after the de-concepts merge. This was a
9143 point of confusion we did not recognize when we reviewed this issue in Frankfurt.
9146 Howard: Ganesh also includes a survey of places in the WP surveyed for changes
9147 of this nature and purposefully <em>not</em> treated:
9152 Places where changes are <u>not</u> being
9156 In the following paragraphs, we are not proposing changes because
9157 it's not clear whether we actually prefer value-initialization over
9158 default-initialization (now partially covered by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1012">1012</a>):
9161 <li><p>20.8.14.2.1 [unique.ptr.single.ctor] para 3 e 7</p></li>
9162 <li><p>24.5.1.3.1 [reverse.iter.cons] para 1</p></li>
9163 <li><p>24.5.3.3.1 [move.iter.op.const] para 1</p></li>
9165 <p>In the following paragraphs, the expression "default
9166 constructed" need not be changed, because the relevant type does
9167 not depend on a template parameter and has a user-provided
9170 <li><p> [func.referenceclosure.invoke] para 12, type:
9171 reference_closure</p></li>
9172 <li><p>30.3.1.2 [thread.thread.constr] para 30, type: thread</p></li>
9173 <li><p>30.3.1.5 [thread.thread.member] para 52, type: thread_id</p></li>
9174 <li><p>30.3.2 [thread.thread.this], para 1, type: thread_id</p></li>
9181 2009-08-18 Daniel adds:
9187 I have no objections against the currently suggested changes, but I
9189 with the list regarding intentionally excluded changes, and from this
9190 I miss the discussion
9197 21.4.1 [string.require]/2:
9201 "[..] The <tt>Allocator</tt> object used shall be a copy of the <tt>Allocator></tt>
9202 object passed to the <tt>basic_string</tt> object's
9203 constructor or, if the constructor does not take an <tt>Allocator</tt>
9204 argument, a copy of a default-constructed
9205 <tt>Allocator</tt> object."
9211 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2723.pdf">N2723</a>,
9212 X [rand.req.eng], Table 109, expression "<tt>T()</tt>":
9215 Pre-/post-condition: "Creates an engine with the same initial state as
9216 all other default-constructed engines of type <tt>X</tt>."
9220 as well as in 26.5.5 [rand.predef]/1-9 (<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2914.pdf">N2914</a>), 26.5.7.1 [rand.util.seedseq]/3, 27.7.1.1.1 [istream.cons]/3, 27.7.2.2 [ostream.cons]/9 (<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2914.pdf">N2914</a>), 28.13 [re.grammar]/2, 30.3.1.4 [thread.thread.assign]/1 (<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2914.pdf">N2914</a>),
9223 Candidates for the "the expression "default constructed" need not be
9229 I'm fine, if these would be added to the intentionally exclusion list,
9230 but mentioning them makes it
9231 easier for other potential reviewers to decide on the relevance or
9232 not-relevance of them for this issue.
9238 I suggest to remove the reference of [func.referenceclosure.invoke]
9239 in the "it's not clear" list, because
9240 this component does no longer exist.
9246 I also suggest to add a short comment that all paragraphs in the
9247 resolution whether they refer to <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2723.pdf">N2723</a> or to <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2914.pdf">N2914</a> numbering, because e.g. "Change 23.3.2.1 [deque.cons] para 5" is an <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2723.pdf">N2723</a> coordinate, while "Change 23.3.2.2 [deque.capacity] para 1" is an <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2914.pdf">N2914</a> coordinate. Even better would be to use one default document
9248 for the numbering (probably <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2914.pdf">N2914</a>) and mention special cases (e.g. "Change 20.2.1 [utility.arg.requirements] para 2" as referring to <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2723.pdf">N2723</a> numbering).
9256 2009-08-18 Alisdair adds:
9262 I strongly believe the term "default constructed" should not appear in
9263 the library clauses unless we very clearly define a meaning for it, and
9264 I am not sure what that would be.
9268 In those cases where we do not want to replace "default constructed"
9269 with "vale initialized" we should be using "default initialized". If we
9270 have a term that could mean either, we reduce portability of programs.
9274 I have not done an exhaustive review to clarify if that is a vendor
9275 freedom we have reason to support (e.g. value-init in debug,
9276 default-init in release) so I may yet be convinced that LWG has reason
9277 to define this new term of art, but generally C++ initialization is
9278 confusing enough without supporting further ill-defined terms.
9293 <p><b>Proposed resolution:</b></p>
9295 Change 20.2.1 [utility.arg.requirements] para 2:
9299 In general, a default constructor is
9300 not required. Certain container class member function signatures
9301 specify <del>the default constructor</del><ins>T()</ins>
9302 as a default argument. T() shall be a well-defined expression (8.5)
9303 if one of those signatures is called using the default argument
9308 Change 23.3.2.1 [deque.cons] para 5:
9312 <i>Effects:</i> Constructs a deque with n
9313 <del>default constructed</del><ins>value-initialized</ins>
9318 Change 23.3.2.2 [deque.capacity] para 1:
9322 <i>Effects:</i> If sz < size(), equivalent
9323 to erase(begin() + sz, end());. If size() < sz, appends sz -
9325 constructed</del><ins>value-initialized</ins>
9326 elements to the sequence.
9330 Change 23.3.3.1 [forwardlist.cons] para 5:
9334 <i>Effects:</i> Constructs a forward_list object with n <del>default
9335 constructed</del><ins>value-initialized</ins>
9340 Change 23.3.3.4 [forwardlist.modifiers] para 21:
9344 <i>Effects:</i> [...] For the first signature
9345 the inserted elements are <del>default
9346 constructed</del><ins>value-initialized</ins>,
9347 and for the second signature they are copies of c.
9351 Change 23.3.4.1 [list.cons] para 5:
9355 <i>Effects:</i> Constructs a list with n <del>default
9356 constructed</del><ins>value-initialized</ins>
9361 Change 23.3.4.2 [list.capacity] para 15:
9365 <i>Effects:</i> If sz < size(), equivalent
9366 to list<T>::iterator it = begin(); advance(it, sz); erase(it,
9367 end());. If size() < sz, appends sz - size() <del>default
9368 constructed</del><ins>value-initialized</ins>
9369 elements to the sequence.
9373 Change 23.3.6.1 [vector.cons] para 3:
9377 <i>Effects:</i> Constructs a vector with n
9378 <del>default constructed</del><ins>value-initialized</ins>
9383 Change 23.3.6.2 [vector.capacity] para 24:
9387 <i>Effects:</i> If sz < size(), equivalent
9388 to erase(begin() + sz, end());. If size() < sz, appends sz -
9390 constructed</del><ins>value-initialized</ins>
9391 elements to the sequence.
9400 <h3><a name="870"></a>870. Do unordered containers not support function pointers for predicate/hasher?</h3>
9401 <p><b>Section:</b> 23.2.5 [unord.req] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
9402 <b>Submitter:</b> Daniel Krügler <b>Opened:</b> 2008-08-17 <b>Last modified:</b> 2009-10-20</p>
9403 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#unord.req">active issues</a> in [unord.req].</p>
9404 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#unord.req">issues</a> in [unord.req].</p>
9405 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
9406 <p><b>Discussion:</b></p>
9408 Good ol' associative containers allow both function pointers and
9409 function objects as feasible
9410 comparators, as described in 23.2.4 [associative.reqmts]/2:
9414 Each associative container is parameterized on <tt>Key</tt> and an ordering
9415 relation <tt>Compare</tt> that
9416 induces a strict weak ordering (25.3) on elements of Key. [..]. The
9417 object of type <tt>Compare</tt> is
9418 called the comparison object of a container. This comparison object
9420 function or an object of a type with an appropriate function call operator.[..]
9424 The corresponding wording for unordered containers is not so clear,
9425 but I read it to disallow
9426 function pointers for the hasher and I miss a clear statement for the
9427 equality predicate, see
9428 23.2.5 [unord.req]/3+4+5:
9433 Each unordered associative container is parameterized by <tt>Key</tt>, by a
9434 function object <tt>Hash</tt> that
9435 acts as a hash function for values of type <tt>Key</tt>, and by a binary
9436 predicate <tt>Pred</tt> that induces an
9437 equivalence relation on values of type <tt>Key</tt>.[..]
9440 A hash function is a function object that takes a single argument of
9441 type <tt>Key</tt> and returns a
9442 value of type <tt>std::size_t</tt>.
9445 Two values <tt>k1</tt> and <tt>k2</tt> of type <tt>Key</tt> are considered equal if the
9446 container's equality function object
9447 returns <tt>true</tt> when passed those values.[..]
9452 and table 97 says in the column "assertion...post-condition" for the
9453 expression X::hasher:
9457 <tt>Hash</tt> shall be a unary function object type such that the expression
9458 <tt>hf(k)</tt> has type <tt>std::size_t</tt>.
9462 Note that 20.7 [function.objects]/1 defines as "Function objects are
9463 objects with an <tt>operator()</tt> defined.[..]"
9466 Does this restriction exist by design or is it an oversight? If an
9467 oversight, I suggest that to apply
9472 2009-07-28 Reopened by Alisdair. No longer solved by concepts.
9482 Ask Daniel to provide proposed wording that: makes it explicit that
9483 function pointers are function objects at the beginning of 20.7 [function.objects]; fixes the "requirements" for typedefs in
9484 20.7.5 [refwrap] to instead state that the function objects
9485 defined in that clause have these typedefs, but not that these typedefs
9486 are requirements on function objects; remove the wording that explicitly
9487 calls out that associative container comparators may be function
9493 <p><b>Proposed resolution:</b></p>
9495 In 23.2.5 [unord.req]/3, just after the second sentence which is written as
9499 Additionally, <tt>unordered_map</tt> and <tt>unordered_multimap</tt> associate an
9500 arbitrary mapped type <tt>T</tt> with the <tt>Key</tt>.
9504 add one further sentence:
9508 Both <tt>Hash</tt> and <tt>Pred</tt> may be pointers to function or objects of a type
9509 with an appropriate function call operator.
9513 [Note1: Since the detailed requirements for <tt>Pred</tt> and <tt>Hash</tt> are given in
9514 p.4 and p.5, it an alternative resolution
9515 would be to insert a new paragraph just after p.5, which contains the
9516 above proposed sentence]
9519 [Note2: I do not propose a change of above quoted element in table 97,
9520 because the mis-usage of the
9521 notion of "function object" seems already present in the standard at
9522 several places, even if it includes
9523 function pointers, see e.g. 25 [algorithms]/7. The important point is
9524 that in those places a statement is
9525 given that the actually used symbol, like "Predicate" applies for
9526 function pointers as well]
9530 <p><b>Rationale:</b></p>
9538 <a href="" ref="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2776.pdf">N2776</a>.
9547 <h3><a name="871"></a>871. Iota's requirements on T are too strong</h3>
9548 <p><b>Section:</b> 26.7.5 [numeric.iota] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
9549 <b>Submitter:</b> Daniel Krügler <b>Opened:</b> 2008-08-20 <b>Last modified:</b> 2009-10-22</p>
9550 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
9551 <p><b>Discussion:</b></p>
9553 According to the recent WP
9554 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2691.pdf">N2691</a>,
9555 26.7.5 [numeric.iota]/1, the requires clause
9556 of <tt>std::iota</tt> says:
9560 <tt>T</tt> shall meet the requirements of <tt>CopyConstructible</tt> and <tt>Assignable</tt> types, and
9561 shall be convertible to <tt>ForwardIterator</tt>'s value type.[..]
9565 Neither <tt>CopyConstructible</tt> nor <tt>Assignable</tt> is needed, instead <tt>MoveConstructible</tt>
9566 seems to be the correct choice. I guess the current wording resulted as an
9567 artifact from comparing it with similar numerical algorithms like <tt>accumulate</tt>.
9571 Note: If this function will be conceptualized, the here proposed
9572 <tt>MoveConstructible</tt>
9573 requirement can be removed, because this is an implied requirement of
9574 function arguments, see
9575 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2710.pdf">N2710</a>/[temp.req.impl]/3, last bullet.
9584 Issue pulled by author prior to review.
9588 2009-07-30 Daniel reopened:
9593 with the absence of concepts, this issue (closed) is valid again and I
9594 suggest to reopen it.
9595 I also revised by proposed resolution based on N2723 wording:
9604 Change 'convertible' to 'assignable', Move To Ready.
9609 <p><b>Proposed resolution:</b></p>
9611 Change the first sentence of 26.7.5 [numeric.iota]/1:
9615 <i>Requires:</i> <tt>T</tt> shall <del>meet the requirements of <tt>CopyConstructible</tt> and
9616 <tt>Assignable</tt> types, and shall</del> be
9617 assignable to <tt>ForwardIterator</tt>'s value type. [..]
9628 <h3><a name="872"></a>872. <tt>move_iterator::operator[]</tt> has wrong return type</h3>
9629 <p><b>Section:</b> 24.5.3.3.12 [move.iter.op.index] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
9630 <b>Submitter:</b> Doug Gregor <b>Opened:</b> 2008-08-21 <b>Last modified:</b> 2009-10-23</p>
9631 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
9632 <p><b>Discussion:</b></p>
9634 <tt>move_iterator</tt>'s <tt>operator[]</tt> is declared as:
9637 <blockquote><pre>reference operator[](difference_type n) const;
9641 This has the same problem that <tt>reverse_iterator</tt>'s <tt>operator[]</tt> used to
9642 have: if the underlying iterator's <tt>operator[]</tt> returns a proxy, the
9643 implicit conversion to <tt>value_type&&</tt> could end up referencing a temporary
9644 that has already been destroyed. This is essentially the same issue that
9645 we dealt with for <tt>reverse_iterator</tt> in DR <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#386">386</a>.
9649 2009-07-28 Reopened by Alisdair. No longer solved by concepts.
9654 2009-08-15 Howard adds:
9659 I recommend closing this as a duplicate of <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1051">1051</a> which addresses
9660 this issue for both <tt>move_iterator</tt> and <tt>reverse_iterator</tt>.
9669 Move to Ready. Note that if <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1051">1051</a> is reopened, it may yield a
9670 better resolution, but <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1051">1051</a> is currently marked NAD.
9675 <p><b>Proposed resolution:</b></p>
9677 In 24.5.3.1 [move.iterator] and 24.5.3.3.12 [move.iter.op.index], change the declaration of
9678 <tt>move_iterator</tt>'s <tt>operator[]</tt> to:
9681 <blockquote><pre><del>reference</del> <ins><i>unspecified</i></ins> operator[](difference_type n) const;
9686 <p><b>Rationale:</b></p>
9694 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2777.pdf">N2777</a>.
9701 <h3><a name="885"></a>885. pair assignment</h3>
9702 <p><b>Section:</b> 20.3.4 [pairs] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
9703 <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2008-09-15 <b>Last modified:</b> 2009-07-17</p>
9704 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#pairs">active issues</a> in [pairs].</p>
9705 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#pairs">issues</a> in [pairs].</p>
9706 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
9707 <p><b>Discussion:</b></p>
9708 <blockquote><pre>20.2.3 pairs
9709 Missing assignemnt operator:
9710 template<class U , class V>
9711 requires CopyAssignable<T1, U> && CopyAssignable<T2, V>
9712 pair& operator=(pair<U , V> const & p );
9716 Well, that's interesting. This assignment operator isn't in the
9717 current working paper, either. Perhaps we deemed it acceptable to
9718 build a temporary of type <tt>pair</tt> from <tt>pair<U, V></tt>, then move-assign
9719 from that temporary?
9722 It sounds more like an issue waiting to be opened, unless you want to plug
9723 it now. As written we risk moving from lvalues.
9733 Would be NAD if better ctors fixed it.
9736 Related to <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#811">811</a>.
9746 Possibly NAD Editorial, solved by
9747 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2770.pdf">N2770</a>.
9751 2009-05-25 Alisdair adds:
9756 Issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#885">885</a> was something I reported while reviewing the library concepts
9757 documents ahead of San Francisco. The missing operator was added as part of
9758 the paper adopted at that meeting
9759 (<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2770.pdf">N2770</a>)
9760 and I can confirm this operator is
9761 present in the current working paper. I recommend NAD.
9770 We agree with the intent, but we need to wait for the dust to settle on concepts.
9775 <p><b>Proposed resolution:</b></p>
9784 <h3><a name="887"></a>887. issue with condition::wait_...</h3>
9785 <p><b>Section:</b> 30.5.1 [thread.condition.condvar] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
9786 <b>Submitter:</b> Lawrence Crowl <b>Opened:</b> 2008-09-15 <b>Last modified:</b> 2009-10-26</p>
9787 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#thread.condition.condvar">active issues</a> in [thread.condition.condvar].</p>
9788 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#thread.condition.condvar">issues</a> in [thread.condition.condvar].</p>
9789 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
9790 <p><b>Discussion:</b></p>
9792 The Posix/C++ working group has identified an inconsistency between
9793 Posix and the C++ working draft in that Posix requires the clock to be
9794 identified at creation, whereas C++ permits identifying the clock at the
9795 call to wait. The latter cannot be implemented with the former.
9805 Howard recommends NAD with the following explanation:
9809 The intent of the current wording is for the <tt>condtion_variable::wait_until</tt>
9810 be able to handle user-defined clocks as well as clocks the system knows about.
9811 This can be done by providing overloads for the known clocks, and another
9812 overload for unknown clocks which synchs to a known clock before waiting.
9816 <blockquote><pre>template <class Duration>
9818 condition_variable::wait_until(unique_lock<mutex>& lock,
9819 const chrono::time_point<chrono::system_clock, Duration>& abs_time)
9821 using namespace chrono;
9822 nanoseconds d = __round_up<nanoseconds>(abs_time.time_since_epoch());
9823 __do_timed_wait(lock.mutex()->native_handle(), time_point<system_clock, nanoseconds>(d));
9824 return system_clock::now() < abs_time;
9827 template <class Clock, class Duration>
9829 condition_variable::wait_until(unique_lock<mutex>& lock,
9830 const chrono::time_point<Clock, Duration>& abs_time)
9832 using namespace chrono;
9833 system_clock::time_point s_entry = system_clock::now();
9834 typename Clock::time_point c_entry = Clock::now();
9835 nanoseconds dn = __round_up<nanoseconds>(abs_time.time_since_epoch() -
9836 c_entry.time_since_epoch());
9837 __do_timed_wait(lock.mutex()->native_handle(), s_entry + dn);
9838 return Clock::now() < abs_time;
9843 In the above example, <tt>system_clock</tt> is the only clock which the underlying
9844 condition variable knows how to deal with. One overload just passes that clock
9845 through. The second overload (approximately) converts the unknown clock into
9846 a <tt>system_clock time_point</tt> prior to passing it down to the native
9851 On Posix systems vendors are free to add implementation defined constructors which
9852 take a clock. That clock can be stored in the condition_variable, and converted
9853 to (or not as necessary) as shown above.
9857 If an implementation defined constructor takes a clock (for example), then part
9858 of the semantics for that implementation defined ctor might include that a
9859 <tt>wait_until</tt> using a clock other than the one constructed with results
9860 in an error (exceptional condition) instead of a conversion to the stored clock.
9861 Such a design is up to the vendor as once an implementation defined ctor is used,
9862 the vendor is free to specifiy the behavior of waits and/or notifies however
9863 he pleases (when the cv is constructed in an implementation defined manner).
9874 "POSIX people will review the proposed NAD resolution at their upcoming NY
9879 See the minutes at: <a href="http://wiki.dinkumware.com/twiki/bin/view/Posix/POSIX-CppBindingWorkingGroupNewYork2009">http://wiki.dinkumware.com/twiki/bin/view/Posix/POSIX-CppBindingWorkingGroupNewYork2009</a>.
9893 2009-07-18 Detlef reopens the issue:
9899 On Friday afternoon in Frankfurt is was decided that 887 is NAD.
9900 This decision was mainly based on a sample implementation presented
9901 by Howard that implemented one clock on top of another.
9902 Unfortunately this implementation doesn't work for the probably most
9903 important case where a system has a monotonic clock and a real-time
9904 clock (or "wall time" clock):
9907 If the underlying "system_clock" is a monotonic clock, and
9908 the program waits on the real-time clock, and the real-time clock
9909 is set forward, the wait will unblock too late.
9913 If the underlying "system_clock" is a real-time clock, and the
9914 program waits on the monotonic clock, and the real-time clock
9915 is set back, the wait again will unblock too late.
9919 Sorry that I didn't remember this on Friday, but it was Friday
9920 afternoon after a busy week...
9924 So as the decision was made on a wrong asumption, I propose to re-open
9930 2009-07-26 Howard adds:
9936 Detlef correctly argues that <tt>condition_variable::wait_until</tt> could
9937 return "too late" in the context of clocks being adjusted during the wait. I agree
9938 with his logic. But I disagree that this makes this interface unimplementable
9943 The POSIX spec also does not guarantee that <tt>pthread_cond_timedwait</tt> does
9944 not return "too late" when clocks are readjusted during the wait. Indeed, the
9945 POSIX specification lacks any requirements at all concerning how soon
9946 <tt>pthread_cond_timedwait</tt> returns after a time out. This is evidently a
9947 QOI issue by the POSIX standard. Here is a quote of the most relevant normative
9948 text concerning <tt>pthread_cond_timedwait</tt> found
9949 <a href="http://www.unix.org/single_unix_specification/">here</a>.
9953 The <tt>pthread_cond_timedwait()</tt> function shall be equivalent to
9954 <tt>pthread_cond_wait()</tt>, except that an error is returned if the absolute
9955 time specified by <tt>abstime</tt> passes (that is, system time equals or exceeds
9956 <tt>abstime</tt>) before the condition <tt>cond</tt> is signaled or broadcasted, or if the
9957 absolute time specified by <tt>abstime</tt> has already been passed at the time
9962 I.e. the POSIX specification speaks of the error code returned in case of a time
9963 out, but not on the timeliness of that return.
9967 Might this simply be an oversight, or minor defect in the POSIX specification?
9971 I do not believe so. This same section goes on to say in <em>non-normative</em>
9976 For cases when the system clock is advanced discontinuously by an
9977 operator, it is expected that implementations process any timed wait
9978 expiring at an intervening time as if that time had actually occurred.
9982 Here is non-normative wording encouraging the implementation to ignore an advancing
9983 underlying clock and subsequently causing an early (spurious) return. There is
9984 no wording at all which addresses Detlef's example of a "late return". With
9985 <tt>pthread_cond_timedwait</tt> this would be caused by setting the system clock
9986 backwards. It seems reasonable to assume, based on the wording that is already
9987 in the POSIX spec, that again, the discontinuously changed clock would be ignored
9988 by <tt>pthread_cond_timedwait</tt>.
9992 A noteworthy difference between <tt>pthread_cond_timedwait</tt> and
9993 <tt>condition_variable::wait_until</tt> is that the POSIX spec appears to
9994 say that <tt>ETIMEDOUT</tt> should be returned if <tt>pthread_cond_timedwait</tt>
9995 returns because of timeout signal, whether or not the system clock was discontinuously
9996 advanced during the wait. In contrast <tt>condition_variable::wait_until</tt>
10000 <blockquote><pre><tt>Clock::now() < abs_time</tt>
10001 </pre></blockquote>
10004 That is, the C++ spec requires that the clock be rechecked (detecting discontinuous
10005 adjustments during the wait) at the time of return. <tt>condition_variable::wait_until</tt>
10006 may indeed return early or late. But regardless it will return a value
10007 reflecting timeout status at the time of return (even if clocks have been adjusted).
10008 Of course the clock may be adjusted after the return value is computed but before the client has
10009 a chance to read the result of the return. Thus there are no iron-clad guarantees
10014 <tt>condition_variable::wait_until</tt> (and <tt>pthread_cond_timedwait</tt>)
10015 is little more than a convenience function for making sure
10016 <tt>condition_variable::wait</tt> doesn't hang for an unreasonable amount of
10017 time (where the client gets to define "unreasonable"). I do not think it
10018 is in anyone's interest to try to make it into anything more than that.
10022 I maintain that this is a useful and flexible specification in the spirit of
10023 C++, and is implementable on POSIX. The implementation technique described above
10024 is a reasonable approach. There may also be higher quality approaches. This
10025 specification, like the POSIX specification, gives a wide latitude for QOI.
10029 I continue to recommend NAD, but would not object to a clarifying note regarding
10030 the behavior of <tt>condition_variable::wait_until</tt>. At the moment, I do
10031 not have good wording for such a note, but welcome suggestions.
10037 2009-09-30: See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2969.html">N2969</a>.
10042 2009-10 Santa Cruz:
10047 The LWG is in favor of Detlef to supply revision which adopts Option 2 from
10048 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2969.html">N2969</a>
10049 but is modified by saying that <tt>system_clock</tt> must be available for <tt>wait_until</tt>.
10054 <p><b>Proposed resolution:</b></p>
10063 <h3><a name="889"></a>889. thread::id comparisons</h3>
10064 <p><b>Section:</b> 30.3.1.1 [thread.thread.id] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
10065 <b>Submitter:</b> Lawrence Crowl <b>Opened:</b> 2008-09-15 <b>Last modified:</b> 2009-10-22</p>
10066 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#thread.thread.id">issues</a> in [thread.thread.id].</p>
10067 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
10068 <p><b>Discussion:</b></p>
10070 <p><b>Addresses UK 324</b></p>
10073 The <tt>thread::id</tt> type supports the full set of comparison operators. This
10074 is substantially more than is required for the associative containers that
10075 justified them. Please place an issue against the threads library.
10085 Would depend on proposed extension to POSIX, or non-standard extension.
10086 What about hash? POSIX discussing op. POSIX not known to be considering
10087 support needed for hash, op.
10090 Group expresses support for putting ids in both unordered and ordered containers.
10095 post San Francisco:
10101 Howard: It turns out the current working paper
10102 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2723.pdf">N2723</a>
10103 <i>already has</i> <tt>hash<thread::id></tt>
10104 (20.7 [function.objects], 20.7.16 [unord.hash]). We simply
10105 overlooked it in the meeting. It is a good thing we voted in favor of it
10120 Recommend to close as NAD. For POSIX, see if we need to add a function to
10121 convert <tt>pthread_t</tt> to integer.
10125 Post Summit, Alisdair adds:
10131 The recommendation for LWG-889/UK-324 is NAD, already specified.
10134 It is not clear to me that the specification is complete.
10137 In particular, the synopsis of <tt><functional></tt> in 20.7 [function.objects] does not mention <tt>hash< thread::id
10138 ></tt> nor <tt>hash< error_code ></tt>, although their
10139 existence is implied by 20.7.16 [unord.hash], p1.
10142 I am fairly uncomfortable putting the declaration for the
10143 <tt>thread_id</tt> specialization into <tt><functional></tt> as
10144 <tt>id</tt> is a nested class inside <tt>std::thread</tt>, so it implies
10145 that <tt><functional></tt> would require the definition of the
10146 <tt>thread</tt> class template in order to forward declared
10147 <tt>thread::id</tt> and form this specialization.
10150 It seems better to me that the dependency goes the other way around
10151 (<tt><thread></tt> will more typically make use of
10152 <tt><functional></tt> than vice-versa) and the
10153 <tt>hash<thread::id></tt> specialization be declared in the
10154 <tt><thread></tt> header.
10157 I think <tt>hash<error_code></tt> could go into either
10158 <tt><system_error></tt> or <tt><functional></tt> and have no
10159 immediate preference either way. However, it should clearly appear in
10160 the synopsis of one of these two.
10163 Recommend moving 889 back to open, and tying in a reference to UK-324.
10172 Howard observes that <tt>thread::id</tt> need not be a nested class;
10173 it could be a <tt>typedef</tt> for a more visible type.
10177 2009-05-24 Alisdair adds:
10181 I do not believe this is correct. <tt>thread::id</tt> is explicitly documents as a
10182 nested class, rather than as an unspecified typedef analogous to an
10183 iterator. If the intent is that this is not implemented as a nested class
10184 (under the as-if freedoms) then this is a novel form of standardese.
10193 Decided we want to move hash specialization for thread_id to the thread
10194 header. Alisdair to provide wording.
10198 2009-07-28 Alisdair provided wording, moved to Review.
10203 2009-10 Santa Cruz:
10208 Add a strike for <tt>hash<thread::id></tt>. Move to Ready
10213 <p><b>Proposed resolution:</b></p>
10216 Remove the following prototype from the synopsis in
10217 20.7 [function.objects]:
10220 <blockquote><pre><del>
10221 template <> struct hash<std::thread::id>;
10222 </del></pre></blockquote>
10225 Add to 30.3 [thread.threads], p1 Header <tt><thread></tt> synopsis:
10228 <blockquote><pre><ins>template <class T> struct hash;
10229 template <> struct hash<thread::id>;</ins>
10230 </pre></blockquote>
10233 Add template specialization below class definition in 30.3.1.1 [thread.thread.id]
10236 <blockquote><pre><ins>template <>
10237 struct hash<thread::id> : public unary_function<thread::id, size_t> {
10238 size_t operator()(thread::id val) const;
10240 </pre></blockquote>
10243 Extend note in p2 30.3.1.1 [thread.thread.id] with second sentence:
10247 [<i>Note:</i> Relational operators allow <tt>thread::id</tt> objects to be used
10248 as keys in associative containers.
10249 <ins><tt>hash</tt> template specialization allow <tt>thread::id</tt> objects to be used as keys
10250 in unordered containers.</ins>
10251 — <i>end note</i>]
10255 Add new paragraph to end of 30.3.1.1 [thread.thread.id]
10258 <blockquote><pre><ins>template <> struct hash<thread::id>;</ins>
10261 An explicit specializations of the class template hash (20.7.16 [unord.hash])
10262 shall be provided for the values of type <tt>thread::id</tt>
10263 suitable for use as keys in unordered associative containers (23.5 [unord]).
10264 </ins></blockquote>
10272 <h3><a name="891"></a>891. std::thread, std::call_once issue</h3>
10273 <p><b>Section:</b> 30.3.1.2 [thread.thread.constr], 30.4.5.2 [thread.once.callonce] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
10274 <b>Submitter:</b> Peter Dimov <b>Opened:</b> 2008-09-15 <b>Last modified:</b> 2009-10-24</p>
10275 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#thread.thread.constr">active issues</a> in [thread.thread.constr].</p>
10276 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#thread.thread.constr">issues</a> in [thread.thread.constr].</p>
10277 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
10278 <p><b>Discussion:</b></p>
10280 I notice that the vararg overloads of <tt>std::thread</tt> and <tt>std::call_once</tt>
10281 (N2723 30.3.1.2 [thread.thread.constr] and 30.4.5.2 [thread.once.callonce]) are no longer specified in terms of
10282 <tt>std::bind</tt>; instead, some of the <tt>std::bind</tt> wording has been inlined into
10286 There are two problems with this.
10289 First, the specification (and implementation) in terms of <tt>std::bind</tt> allows, for example:
10292 <blockquote><pre>std::thread th( f, 1, std::bind( g ) );
10293 </pre></blockquote>
10296 which executes <tt>f( 1, g() )</tt> in a thread. This can be useful. The
10297 "inlined" formulation changes it to execute <tt>f( 1, bind(g) )</tt> in a thread.
10300 Second, assuming that we don't want the above, the specification has copied the wording
10304 <tt>INVOKE(func, w1, w2, ..., wN)</tt> (20.6.2) shall be a valid
10305 expression for some values <tt>w1, w2, ..., wN</tt>
10309 but this is not needed since we know that our argument list is args; it should simply be
10313 <tt>INVOKE(func, args...)</tt> (20.6.2) shall be a valid expression
10326 Post Summit Anthony provided proposed wording.
10336 Leave Open. Await decision for thread variadic constructor.
10340 2009-10 Santa Cruz:
10345 See proposed wording for <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#929">929</a> for this, for the formulation
10346 on how to solve this. <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#929">929</a> modifies the thread constructor to
10347 have "pass by value" behavior with pass by reference efficiency through the use
10348 of the <tt>decay</tt> trait. This same formula would be useful for <tt>call_once</tt>.
10353 <p><b>Proposed resolution:</b></p>
10355 Change paragraph 4 of 30.3.1.2 [thread.thread.constr] to:
10359 <pre>template <class F> explicit thread(F f);
10360 template <class F, class ...Args> thread(F&& f, Args&&... args);
10363 -4- <i>Requires:</i> <tt>F</tt> and each <tt>Ti</tt> in <tt>Args</tt>
10364 shall be <tt>CopyConstructible</tt> if an lvalue and otherwise
10365 <tt>MoveConstructible</tt>. <tt><i>INVOKE</i>(f, <del>w1, w2, ..., wN</del> <ins>args...</ins>)</tt>
10366 (20.6.2) shall be a valid expression<del> for some values <i>w1, w2, ...,
10367 wN</i>, where <tt>N == sizeof...(Args)</tt></del>.
10372 Change paragraph 1 of 30.4.5.2 [thread.once.callonce] to:
10375 <blockquote><pre>template<class Callable, class ...Args>
10376 void call_once(once_flag& flag, Callable func, Args&&... args);
10379 -1- <i>Requires:</i> The template parameters <tt>Callable></tt> and each
10380 <tt>Ti</tt> in <tt>Args</tt> shall be <tt>CopyConstructible</tt> if an
10381 lvalue and otherwise <tt>MoveConstructible</tt>. <tt><i>INVOKE</i>(func,
10382 <del>w1, w2, ..., wN</del> <ins>args...</ins>)</tt> (20.6.2) shall be a
10383 valid expression<del> for some values <i>w1, w2, ..., wN</i>, where
10384 <tt>N == sizeof...(Args)</tt></del>.
10393 <h3><a name="893"></a>893. std::mutex issue</h3>
10394 <p><b>Section:</b> 30.4.1.1 [thread.mutex.class] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
10395 <b>Submitter:</b> Peter Dimov <b>Opened:</b> 2008-09-15 <b>Last modified:</b> 2009-10-22</p>
10396 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#thread.mutex.class">issues</a> in [thread.mutex.class].</p>
10397 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
10398 <p><b>Duplicate of:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#905">905</a></p>
10399 <p><b>Discussion:</b></p>
10401 30.4.1.1 [thread.mutex.class]/27 (in
10402 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2723.pdf">N2723</a>)
10403 says that the behavior is undefined if:
10406 <li>a thread that owns a <tt>mutex</tt> object calls <tt>lock()</tt> or
10407 <tt>try_lock()</tt> on that object</li>
10410 I don't believe that this is right. Calling <tt>lock()</tt> or <tt>try_lock()</tt> on a
10411 locked <tt>mutex</tt> is well defined in the general case. <tt>try_lock()</tt> is required
10412 to fail and return <tt>false</tt>. <tt>lock()</tt> is required to either throw an
10413 exception (and is allowed to do so if it detects deadlock) or to block
10414 until the <tt>mutex</tt> is free. These general requirements apply regardless of
10415 the current owner of the <tt>mutex</tt>; they should apply even if it's owned by
10416 the current thread.
10419 Making double <tt>lock()</tt> undefined behavior probably can be justified (even
10420 though I'd still disagree with the justification), but <tt>try_lock()</tt> on a
10421 locked <tt>mutex</tt> must fail.
10430 Move to open. Proposed resolution:
10434 In 30.4.1 [thread.mutex.requirements] paragraph 12, change the error
10435 condition for <tt>resource_deadlock_would_occur</tt> to: "if the implementation
10436 detects that a deadlock would occur"
10439 Strike 30.4.1.1 [thread.mutex.class] paragraph 3 bullet 2 "a thread that owns a mutex object
10440 calls <tt>lock()</tt> or <tt>try_lock()</tt> on that object, or"
10451 Move to Review. Alisdair to provide note.
10455 2009-07-31 Alisdair provided note.
10460 2009-10 Santa Cruz:
10470 <p><b>Proposed resolution:</b></p>
10472 In 30.4.1 [thread.mutex.requirements] paragraph 12 change:
10479 <tt>resource_deadlock_would_occur</tt> -- if the <del>current thread already owns the mutex and is able
10480 to detect it</del> <ins>implementation detects that a deadlock would occur</ins>.
10487 Strike 30.4.1.1 [thread.mutex.class] paragraph 3 bullet 2:
10491 -3- The behavior of a program is undefined if:
10496 <del>a thread that owns a <tt>mutex</tt> object calls <tt>lock()</tt> or <tt>try_lock()</tt> on that object, or</del>
10503 Add the following note after p3 30.4.1.1 [thread.mutex.class]
10507 [<i>Note:</i> a program may deadlock if the thread that owns a <tt>mutex</tt>
10508 object calls <tt>lock()</tt> or <tt>try_lock()</tt> on that object. If the program can
10509 detect the deadlock, a <tt>resource_deadlock_would_occur</tt> error condition may
10510 be observed. — <i>end note</i>]
10519 <h3><a name="896"></a>896. Library thread safety issue</h3>
10520 <p><b>Section:</b> 20.8.15.2 [util.smartptr.shared] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
10521 <b>Submitter:</b> Hans Boehm <b>Opened:</b> 2008-09-16 <b>Last modified:</b> 2009-10-25</p>
10522 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#util.smartptr.shared">issues</a> in [util.smartptr.shared].</p>
10523 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
10524 <p><b>Discussion:</b></p>
10526 It is unclear whether <tt>shared_ptr</tt> is thread-safe in the sense that
10527 multiple threads may simultaneously copy a <tt>shared_ptr</tt>. However this
10528 is a critical piece of information for the client, and it has significant
10529 impact on usability for many applications. (Detlef Vollman thinks it
10530 is currently clear that it is not thread-safe. Hans Boehm thinks
10531 it currently requires thread safety, since the <tt>use_count</tt> is not an
10532 explicit field, and constructors and assignment take a const reference
10533 to an existing <tt>shared_ptr</tt>.)
10540 Many multi-threaded usages are impossible. A thread-safe version can
10541 be used to destroy an object when the last thread drops it, something
10542 that is often required, and for which we have no other easy mechanism.
10545 Against thread-safety:
10548 The thread-safe version is well-known to be far more expensive, even
10549 if used by a single thread. Many applications, including all single-threaded
10560 Beman: this is a complicated issue, and would like to move this to Open
10561 and await comment from Peter Dimov; we need very careful and complete
10562 rationale for any decision we make; let's go slow
10565 Detlef: I think that <tt>shared_ptr</tt> should not be thread-safe.
10568 Hans: When you create a thread with a lambda, it in some cases makes it
10569 very difficult for the lambda to reference anything in the heap. It's
10570 currently ambiguous as to whether you can use a <tt>shared_ptr</tt> to get at an
10574 Leave in Open. Detlef will submit an alternative proposed resolution
10575 that makes <tt>shared_ptr</tt> explicitly unsafe.
10578 A third option is to support both threadsafe and non-safe share_ptrs,
10579 and to let the programmer decide which behavior they want.
10583 Beman: Peter, do you support the PR?
10591 Yes, I support the proposed resolution, and I certainly oppose any
10592 attempts to <tt>make shared_ptr</tt> thread-unsafe.
10595 I'd mildly prefer if
10598 [<i>Note:</i> This is true in spite of that fact that such functions often
10599 modify <tt>use_count()</tt> <i>--end note</i>]
10605 [<i>Note:</i> This is true in spite of that fact that such functions often
10606 cause a change in <tt>use_count()</tt> <i>--end note</i>]
10609 (or something along these lines) to emphasise that <tt>use_count()</tt> is not,
10610 conceptually, a variable, but a return value.
10623 Vote: Do we want one thread-safe shared pointer or two? If two, one
10624 would allow concurrent construction and destruction of shared pointers,
10625 and one would not be thread-safe. If one, then it would be thread-safe.
10628 No concensus on that vote.
10631 Hans to improve wording in consultation with Pete. Leave Open.
10636 2009-10 Santa Cruz:
10641 Move to Ready. Ask Editor to clear up wording a little when integrating to
10642 make it clear that the portion after the first comma only applies for
10643 the presence of data races.
10647 2009-10-24 Hans adds:
10653 I think we need to pull 896 back from ready, unfortunately. My wording
10654 doesn't say the right thing.
10658 I suspect we really want to say something along the lines of:
10662 For purposes of determining the presence of a data race, member
10663 functions access and modify only the <tt>shared_ptr</tt> and
10664 <tt>weak_ptr</tt> objects themselves and not objects they refer to.
10665 Changes in <tt>use_count()</tt> do not reflect modifications that can
10666 introduce data races.
10670 But I think this needs further discussion by experts to make sure this
10675 Detlef and I agree continue to disagree on the resolution, but I think
10676 we agree that it would be good to try to expedite this so that it can be
10677 in CD2, since it's likely to generate NB comments no matter what we do.
10678 And lack of clarity of intent is probably the worst option. I think it
10679 would be good to look at this between meetings.
10685 <p><b>Proposed resolution:</b></p>
10687 Make it explicitly thread-safe, in this weak sense, as I believe was intended:
10690 Insert in 20.8.15.2 [util.smartptr.shared], before p5:
10694 For purposes of determining the presence of a data race,
10695 member functions do not modify <tt>const shared_ptr</tt> and
10696 const <tt>weak_ptr</tt> arguments, nor any objects they
10697 refer to. [<i>Note:</i> This is true in spite of that fact that such functions often
10698 cause a change in <tt>use_count()</tt> <i>--end note</i>]
10702 On looking at the text, I'm not sure we need a similar disclaimer
10703 anywhere else, since nothing else has the problem with the modified
10704 <tt>use_count()</tt>. I think Howard arrived at a similar conclusion.
10712 <h3><a name="900"></a>900. stream move-assignment</h3>
10713 <p><b>Section:</b> 27.9.1.8 [ifstream.assign] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
10714 <b>Submitter:</b> Niels Dekker <b>Opened:</b> 2008-09-20 <b>Last modified:</b> 2009-10-20</p>
10715 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
10716 <p><b>Discussion:</b></p>
10719 appears that we have an issue similar to issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#675">675</a> regarding the move-assignment of
10720 stream types. For example, when assigning to an <tt>std::ifstream</tt>,
10721 <tt>ifstream1</tt>, it seems preferable to close the file originally held by
10722 <tt>ifstream1</tt>:
10725 <blockquote><pre>ifstream1 = std::move(ifstream2);
10726 </pre></blockquote>
10730 (<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2723.pdf">N2723</a>)
10731 specifies that the move-assignment of
10732 stream types like <tt>ifstream</tt> has the same effect as a swap:
10737 Assign and swap 27.9.1.8 [ifstream.assign]
10739 <pre>basic_ifstream& operator=(basic_ifstream&& rhs);
10742 <i>Effects:</i> <tt>swap(rhs)</tt>.
10752 Howard agrees with the analysis and the direction proposed.
10755 Move to Open pending specific wording to be supplied by Howard.
10765 Howard is going to write wording.
10769 2009-07-26 Howard provided wording.
10774 2009-09-13 Niels adds:
10779 Note: The proposed change of 27.9.1.3 [filebuf.assign]/1 depends on the
10780 resolution of LWG <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1204">1204</a>, which allows implementations to assume that
10781 <tt>*this</tt> and <tt>rhs</tt> refer to different objects.
10790 Leave as Open. Too closely related to <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#911">911</a> to move on at this time.
10795 <p><b>Proposed resolution:</b></p>
10798 Change 27.8.1.2 [stringbuf.assign]/1:
10801 <blockquote><pre>basic_stringbuf& operator=(basic_stringbuf&& rhs);
10804 -1- <i>Effects:</i> <del><tt>swap(rhs)</tt>.</del>
10805 <ins>After the move assignment <tt>*this</tt> reflects the same observable
10806 state it would have if it had been move constructed from <tt>rhs</tt>
10807 (27.8.1.1 [stringbuf.cons]).
10813 Change 27.8.2.2 [istringstream.assign]/1:
10816 <blockquote><pre>basic_istringstream& operator=(basic_istringstream&& rhs);
10819 -1- <i>Effects:</i> <del><tt>swap(rhs)</tt>.</del>
10820 <ins>Move assigns the base and members of <tt>*this</tt> with the respective
10821 base and members of <tt>rhs</tt>.
10827 Change 27.8.3.2 [ostringstream.assign]/1:
10830 <blockquote><pre>basic_ostringstream& operator=(basic_ostringstream&& rhs);
10833 -1- <i>Effects:</i> <del><tt>swap(rhs)</tt>.</del>
10834 <ins>Move assigns the base and members of <tt>*this</tt> with the respective
10835 base and members of <tt>rhs</tt>.
10841 Change 27.8.5.1 [stringstream.assign]/1:
10844 <blockquote><pre>basic_stringstream& operator=(basic_stringstream&& rhs);
10847 -1- <i>Effects:</i> <del><tt>swap(rhs)</tt>.</del>
10848 <ins>Move assigns the base and members of <tt>*this</tt> with the respective
10849 base and members of <tt>rhs</tt>.
10855 Change 27.9.1.3 [filebuf.assign]/1:
10858 <blockquote><pre>basic_filebuf& operator=(basic_filebuf&& rhs);
10861 -1- <i>Effects:</i> <del><tt>swap(rhs)</tt>.</del>
10862 <ins>Begins by calling <tt>this->close()</tt>.
10863 After the move assignment <tt>*this</tt> reflects the same observable
10864 state it would have if it had been move constructed from <tt>rhs</tt>
10865 (27.9.1.2 [filebuf.cons]).
10871 Change 27.9.1.8 [ifstream.assign]/1:
10874 <blockquote><pre>basic_ifstream& operator=(basic_ifstream&& rhs);
10877 -1- <i>Effects:</i> <del><tt>swap(rhs)</tt>.</del>
10878 <ins>Move assigns the base and members of <tt>*this</tt> with the respective
10879 base and members of <tt>rhs</tt>.</ins>
10884 Change 27.9.1.12 [ofstream.assign]/1:
10887 <blockquote><pre>basic_ofstream& operator=(basic_ofstream&& rhs);
10890 -1- <i>Effects:</i> <del><tt>swap(rhs)</tt>.</del>
10891 <ins>Move assigns the base and members of <tt>*this</tt> with the respective
10892 base and members of <tt>rhs</tt>.</ins>
10897 Change 27.9.1.16 [fstream.assign]/1:
10900 <blockquote><pre>basic_fstream& operator=(basic_fstream&& rhs);
10903 -1- <i>Effects:</i> <del><tt>swap(rhs)</tt>.</del>
10904 <ins>Move assigns the base and members of <tt>*this</tt> with the respective
10905 base and members of <tt>rhs</tt>.</ins>
10915 <h3><a name="910"></a>910. Effects of MoveAssignable</h3>
10916 <p><b>Section:</b> 20.2.1 [utility.arg.requirements] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
10917 <b>Submitter:</b> Alberto Ganesh Barbati <b>Opened:</b> 2008-09-29 <b>Last modified:</b> 2009-11-03</p>
10918 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#utility.arg.requirements">active issues</a> in [utility.arg.requirements].</p>
10919 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#utility.arg.requirements">issues</a> in [utility.arg.requirements].</p>
10920 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
10921 <p><b>Discussion:</b></p>
10922 <p><b>Addresses UK 150</b></p>
10925 The description of the effect of <tt>operator=</tt> in the <tt>MoveAssignable</tt>
10926 concept, given in paragraph 7 is:
10929 <blockquote><pre>result_type T::operator=(T&& rv); // inherited from HasAssign<T, T&&>
10933 <i>Postconditions:</i> the constructed <tt>T</tt> object is equivalent to the value of
10934 <tt>rv</tt> before the assignment. [<i>Note:</i> there is no
10935 requirement on the value of <tt>rv</tt> after the assignment. <i>--end note</i>]
10940 The sentence contains a typo (what is the "constructed <tt>T</tt> object"?)
10941 probably due to a cut&paste from <tt>MoveConstructible</tt>. Moreover, the
10942 discussion of LWG issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#675">675</a> shows that the postcondition is too generic
10943 and might not reflect the user expectations. An implementation of the
10944 move assignment that just calls <tt>swap()</tt> would always fulfill the
10945 postcondition as stated, but might have surprising side-effects in case
10946 the source rvalue refers to an object that is not going to be
10947 immediately destroyed. See LWG issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#900">900</a> for another example. Due to
10948 the sometimes intangible nature of the "user expectation", it seems
10949 difficult to have precise normative wording that could cover all cases
10950 without introducing unnecessary restrictions. However a non-normative
10951 clarification could be a very helpful warning sign that swapping is not
10952 always the correct thing to do.
10956 2009-05-09 Alisdair adds:
10962 Issue 910 is exactly the reason BSI advanced the Editorial comment UK-150.
10965 The post-conditions after assignment are at a minimum that the object
10966 referenced by rv must be safely destructible, and the transaction should not
10967 leak resources. Ideally it should be possible to simply assign rv a new
10968 valid state after the call without invoking undefined behaviour, but any
10969 other use of the referenced object would depend upon additional guarantees
10975 2009-05-09 Howard adds:
10981 The intent of the rvalue reference work is that the moved from <tt>rv</tt> is
10982 a valid object. Not one in a singular state. If, for example, the moved from
10983 object is a <tt>vector</tt>, one should be able to do anything on that moved-from
10984 <tt>vector</tt> that you can do with any other <tt>vector</tt>. However you would
10985 first have to query it to find out what its current state is. E.g. it might have <tt>capacity</tt>,
10986 it might not. It might have a non-zero <tt>size</tt>, it might not. But regardless,
10987 you can <tt>push_back</tt> on to it if you want.
10991 That being said, most standard code is now conceptized. That is, the concepts
10992 list the only operations that can be done with templated types - whether or not
10993 the values have been moved from.
10997 Here is user-written code which must be allowed to be legal:
10999 <blockquote><pre>#include <vector>
11000 #include <cstdio>
11002 template <class Allocator>
11004 inspect(std::vector<double, Allocator>&& v)
11006 std::vector<double, Allocator> result(move(v));
11007 std::printf("moved from vector has %u size and %u capacity\n", v.size(), v.capacity());
11008 std::printf("The contents of the vector are:\n");
11009 typedef typename std::vector<double, Allocator>::iterator I;
11010 for (I i = v.begin(), e = v.end(); i != e; ++i)
11011 printf("%f\n", *i);
11016 std::vector<double> v1(100, 5.5);
11019 </pre></blockquote>
11022 The above program does not treat the moved-from <tt>vector</tt> as singular. It
11023 only treats it as a <tt>vector</tt> with an unknown value.
11026 I believe the current proposed wording is consistent with my view on this.
11035 We agree that the proposed resolution
11036 is an improvement over the current wording.
11045 Need to look at again without concepts.
11054 Walter will consult with Dave and Doug.
11058 2009-10 Santa Cruz:
11063 We believe this is handled by the resolution to issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1204">1204</a>,
11064 but there is to much going on in this area to be sure. Defer for now.
11069 <p><b>Proposed resolution:</b></p>
11071 In [concept.copymove], replace the postcondition in paragraph 7 with:
11075 <i>Postconditions:</i> <tt>*this</tt> is equivalent to the value of <tt>rv</tt> before the
11076 assignment. [<i>Note:</i> there is no requirement on the value of <tt>rv</tt> after the
11077 assignment, but the
11078 effect should be unsurprising to the user even in case <tt>rv</tt> is not
11079 immediately destroyed. This may require that resources previously owned
11080 by <tt>*this</tt> are released instead of transferred to <tt>rv</tt>. <i>-- end note</i>]
11088 <h3><a name="911"></a>911. I/O streams and <tt>move/swap</tt> semantic</h3>
11089 <p><b>Section:</b> 27.7.1 [input.streams], 27.7.2 [output.streams] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
11090 <b>Submitter:</b> Alberto Ganesh Barbati <b>Opened:</b> 2008-09-29 <b>Last modified:</b> 2009-10-20</p>
11091 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
11092 <p><b>Discussion:</b></p>
11094 Class template <tt>basic_istream</tt>, <tt>basic_ostream</tt> and <tt>basic_iostream</tt>
11095 implements public move constructors, move assignment operators and <tt>swap</tt>
11096 method and free functions. This might induce both the user and the
11097 compiler to think that those types are <tt>MoveConstructible</tt>, <tt>MoveAssignable</tt>
11098 and <tt>Swappable</tt>. However, those class templates fail to fulfill the user
11099 expectations. For example:
11102 <blockquote><pre>std::ostream os(std::ofstream("file.txt"));
11103 assert(os.rdbuf() == 0); // buffer object is not moved to os, file.txt has been closed
11105 std::vector<std::ostream> v;
11106 v.push_back(std::ofstream("file.txt"));
11107 v.reserve(100); // causes reallocation
11108 assert(v[0].rdbuf() == 0); // file.txt has been closed!
11110 std::ostream&& os1 = std::ofstream("file1.txt");
11111 os1 = std::ofstream("file2.txt");
11112 os1 << "hello, world"; // still writes to file1.txt, not to file2.txt!
11114 std::ostream&& os1 = std::ofstream("file1.txt");
11115 std::ostream&& os2 = std::ofstream("file2.txt");
11116 std::swap(os1, os2);
11117 os1 << "hello, world"; // writes to file1.txt, not to file2.txt!
11118 </pre></blockquote>
11121 This is because the move constructor, the move assignment operator and
11122 <tt>swap</tt> are all implemented through calls to <tt>std::basic_ios</tt> member
11123 functions <tt>move()</tt> and <tt>swap()</tt> that do not move nor swap the controlled
11124 stream buffers. That can't happen because the stream buffers may have
11129 Notice that for <tt>basic_streambuf</tt>, the member function <tt>swap()</tt> is
11130 protected. I believe that is correct and all of <tt>basic_istream</tt>,
11131 <tt>basic_ostream</tt>, <tt>basic_iostream</tt> should do the same as the move ctor, move
11132 assignment operator and swap member function are needed by the derived
11133 <tt>fstream</tt>s and <tt>stringstream</tt>s template. The free swap functions for
11134 <tt>basic_(i|o|io)stream</tt> templates should be removed for the same reason.
11143 We note that the rvalue swap functions have already been removed.
11146 Bill is unsure about making the affected functions protected;
11147 he believes they may need to be public.
11150 We are also unsure about removing the lvalue swap functions as proposed.
11164 It's not clear that the use case is compelling.
11167 Howard: This needs to be implemented and tested.
11172 2009-07-26 Howard adds:
11178 I started out thinking I would recommend NAD for this one. I've turned around
11179 to agree with the proposed resolution (which I've updated to the current draft).
11180 I did not fully understand Ganesh's rationale, and attempt to describe my
11181 improved understanding below.
11185 The move constructor, move assignment operator, and swap function are different
11186 for <tt>basic_istream</tt>, <tt>basic_ostream</tt> and <tt>basic_iostream</tt>
11187 than other classes. A timely conversation with Daniel reminded me of this long
11188 forgotten fact. These members are sufficiently different that they would be
11189 extremely confusing to use in general, but they are very much needed for derived
11195 The move constructor moves everything but the <tt>rdbuf</tt> pointer.
11198 The move assignment operator moves everything but the <tt>rdbuf</tt> pointer.
11201 The swap function swaps everything but the <tt>rdbuf</tt> pointer.
11206 The reason for this behavior is that for the std-derived classes (stringstreams,
11207 filestreams), the <tt>rdbuf</tt> pointer points back into the class itself
11208 (self referencing). It can't be swapped or moved. But this fact isn't born out
11209 at the <tt>stream</tt> level. Rather it is born out at the <tt>fstream</tt>/<tt>sstream</tt>
11210 level. And the lower levels just need to deal with that fact by not messing around
11211 with the <tt>rdbuf</tt> pointer which is stored down at the lower levels.
11215 In a nutshell, it is very confusing for all of those who are not so intimately
11216 related with streams that they've implemented them. And it is even fairly
11217 confusing for some of those who have (including myself). I do not think it is
11218 safe to swap or move <tt>istreams</tt> or <tt>ostreams</tt> because this will
11219 (by necessary design) separate stream state from streambuffer state. Derived
11220 classes (such as <tt>fstream</tt> and <tt>stringstream</tt> must be used to
11221 keep the stream state and stream buffer consistently packaged as one unit during
11226 I've implemented this proposal and am living with it day to day.
11237 Leave Open. Pablo expected to propose alternative wording which would rename
11238 move construction, move assignment and swap, and may or may not make them
11239 protected. This will impact issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#900">900</a>.
11244 <p><b>Proposed resolution:</b></p>
11246 27.7.1.1 [istream]: make the following member functions protected:
11249 <blockquote><pre>basic_istream(basic_istream&& rhs);
11250 basic_istream& operator=(basic_istream&& rhs);
11251 void swap(basic_istream& rhs);
11252 </pre></blockquote>
11255 Ditto: remove the swap free function signature
11258 <blockquote><pre><del>// swap:
11259 template <class charT, class traits>
11260 void swap(basic_istream<charT, traits>& x, basic_istream<charT, traits>& y);</del>
11261 </pre></blockquote>
11264 27.7.1.1.2 [istream.assign]: remove paragraph 4
11267 <blockquote><pre><del>template <class charT, class traits>
11268 void swap(basic_istream<charT, traits>& x, basic_istream<charT, traits>& y);</del>
11271 <del><i>Effects:</i> <tt>x.swap(y)</tt>.</del>
11276 27.7.1.5 [iostreamclass]: make the following member function protected:
11279 <blockquote><pre>basic_iostream(basic_iostream&& rhs);
11280 basic_iostream& operator=(basic_iostream&& rhs);
11281 void swap(basic_iostream& rhs);
11282 </pre></blockquote>
11285 Ditto: remove the swap free function signature
11288 <blockquote><pre><del>template <class charT, class traits>
11289 void swap(basic_iostream<charT, traits>& x, basic_iostream<charT, traits>& y);</del>
11290 </pre></blockquote>
11293 27.7.1.5.3 [iostream.assign]: remove paragraph 3
11296 <blockquote><pre><del>template <class charT, class traits>
11297 void swap(basic_iostream<charT, traits>& x, basic_iostream<charT, traits>& y);</del>
11300 <del><i>Effects:</i> <tt>x.swap(y)</tt>.</del>
11305 27.7.2.1 [ostream]: make the following member function protected:
11308 <blockquote><pre>basic_ostream(basic_ostream&& rhs);
11309 basic_ostream& operator=(basic_ostream&& rhs);
11310 void swap(basic_ostream& rhs);
11311 </pre></blockquote>
11314 Ditto: remove the swap free function signature
11317 <blockquote><pre><del>// swap:
11318 template <class charT, class traits>
11319 void swap(basic_ostream<charT, traits>& x, basic_ostream<charT, traits>& y);</del>
11320 </pre></blockquote>
11323 27.7.2.3 [ostream.assign]: remove paragraph 4
11326 <blockquote><pre><del>template <class charT, class traits>
11327 void swap(basic_ostream<charT, traits>& x, basic_ostream<charT, traits>& y);</del>
11330 <del><i>Effects:</i> <tt>x.swap(y)</tt>.</del>
11340 <h3><a name="915"></a>915. <tt>minmax</tt> with <tt>initializer_list</tt> should return
11341 <tt>pair</tt> of <tt>T</tt>, not <tt>pair</tt> of <tt>const T&</tt></h3>
11342 <p><b>Section:</b> 25.4.7 [alg.min.max] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
11343 <b>Submitter:</b> Daniel Krügler <b>Opened:</b> 2008-10-04 <b>Last modified:</b> 2009-10-23</p>
11344 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#alg.min.max">issues</a> in [alg.min.max].</p>
11345 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
11346 <p><b>Discussion:</b></p>
11348 It seems that the proposed changes for
11349 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2772.pdf">N2772</a>
11350 were not clear enough in
11355 25.4.7 [alg.min.max], before p.23 + p.24 + before p. 27 + p. 28 say that the return
11356 type of the <tt>minmax</tt> overloads with an <tt>initializer_list</tt> is
11357 <tt>pair<const T&, const T&></tt>,
11358 which is inconsistent with the decision for the other <tt>min/max</tt> overloads which take
11359 a <tt>initializer_list</tt> as argument and return a <tt>T</tt>, not a <tt>const T&</tt>.
11360 Doing otherwise for <tt>minmax</tt> would easily lead to unexpected life-time
11361 problems by using <tt>minmax</tt> instead of <tt>min</tt> and <tt>max</tt> separately.
11369 We agree with the proposed resolution.
11370 Move to Tentatively Ready.
11379 Moved from Tentatively Ready to Open only because the wording needs to be
11380 tweaked for concepts removal.
11384 2009-08-18 Daniel adds:
11389 Recommend NAD since the proposed changes have already been performed
11390 as part of editorial work of
11391 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2914.pdf">N2914</a>.
11395 2009-10 Santa Cruz:
11400 Can't find initializer_list form of minmax anymore, only variadic
11401 version. Seems like we had an editing clash with concepts. Leave Open,
11402 at least until editorial issues resolved. Bring this to Editor's
11408 <p><b>Proposed resolution:</b></p>
11412 In 25 [algorithms]/2, header <tt><algorithm></tt> synopsis change as indicated:
11415 <blockquote><pre>template<<del>class</del><ins>LessThanComparable</ins> T>
11416 <ins>requires CopyConstructible<T></ins>
11417 pair<<del>const </del>T<del>&</del>, <del>const </del>T<del>&</del>>
11418 minmax(initializer_list<T> t);
11420 template<class T, <del>class</del><ins>StrictWeakOrder<auto, T></ins> Compare>
11421 <ins>requires CopyConstructible<T></ins>
11422 pair<<del>const </del>T<del>&</del>, <del>const </del>T<del>&</del>>
11423 minmax(initializer_list<T> t, Compare comp);
11424 </pre></blockquote>
11428 In 25.4.7 [alg.min.max] change as indicated (Begin: Just before p.20):
11430 <blockquote><pre>template<<del>class</del><ins>LessThanComparable</ins> T>
11431 <ins>requires CopyConstructible<T></ins>
11432 pair<<del>const </del>T<del>&</del>, <del>const </del>T<del>&</del>>
11433 minmax(initializer_list<T> t);
11437 <del>-20- <i>Requires:</i> <tt>T</tt> is <tt>LessThanComparable</tt> and
11438 <tt>CopyConstructible</tt>.</del>
11441 -21- <i>Returns:</i> <tt>pair<<del>const </del>T<del>&</del>, <del>const
11442 </del>T<del>&</del>>(x, y)</tt> where <tt>x</tt> is the
11443 smallest value and <tt>y</tt> the largest value in the <tt>initializer_list</tt>.
11448 <pre>template<class T, <del>class</del><ins>StrictWeakOrder<auto, T></ins> Compare>
11449 <ins>requires CopyConstructible<T></ins>
11450 pair<<del>const </del>T<del>&</del>, <del>const </del>T<del>&</del>>
11451 minmax(initializer_list<T> t, Compare comp);
11456 <del>-24- <i>Requires:</i> type <tt>T</tt> is <tt>LessThanComparable</tt> and <tt>CopyConstructible</tt>.</del>
11459 -25- <i>Returns:</i> <tt>pair<<del>const </del>T<del>&</del>, <del>const
11460 </del>T<del>&</del>>(x, y)</tt> where <tt>x</tt> is the
11461 smallest value and <tt>y</tt> largest value in the <tt>initializer_list</tt>.
11474 <h3><a name="920"></a>920. Ref-qualification support in the library</h3>
11475 <p><b>Section:</b> 20.7.14 [func.memfn] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
11476 <b>Submitter:</b> Bronek Kozicki <b>Opened:</b> 2008-10-06 <b>Last modified:</b> 2009-10-23</p>
11477 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#func.memfn">issues</a> in [func.memfn].</p>
11478 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
11479 <p><b>Duplicate of:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1230">1230</a></p>
11480 <p><b>Discussion:</b></p>
11482 Daniel Krügler wrote:
11487 Shouldn't above list be completed for &- and &&-qualified
11488 member functions This would cause to add:
11490 <blockquote><pre>template<Returnable R, class T, CopyConstructible... Args>
11491 unspecified mem_fn(R (T::* pm)(Args...) &);
11492 template<Returnable R, class T, CopyConstructible... Args>
11493 unspecified mem_fn(R (T::* pm)(Args...) const &);
11494 template<Returnable R, class T, CopyConstructible... Args>
11495 unspecified mem_fn(R (T::* pm)(Args...) volatile &);
11496 template<Returnable R, class T, CopyConstructible... Args>
11497 unspecified mem_fn(R (T::* pm)(Args...) const volatile &);
11498 template<Returnable R, class T, CopyConstructible... Args>
11499 unspecified mem_fn(R (T::* pm)(Args...) &&);
11500 template<Returnable R, class T, CopyConstructible... Args>
11501 unspecified mem_fn(R (T::* pm)(Args...) const &&);
11502 template<Returnable R, class T, CopyConstructible... Args>
11503 unspecified mem_fn(R (T::* pm)(Args...) volatile &&);
11504 template<Returnable R, class T, CopyConstructible... Args>
11505 unspecified mem_fn(R (T::* pm)(Args...) const volatile &&);
11506 </pre></blockquote>
11511 yes, absolutely. Thanks for spotting this. Without this change <tt>mem_fn</tt>
11512 cannot be initialized from pointer to ref-qualified member function. I
11513 believe semantics of such function pointer is well defined.
11517 Post Summit Daniel provided wording.
11527 We need to think about whether we really want to go down the proposed path
11528 of combinatorial explosion.
11529 Perhaps a Note would suffice.
11532 We would really like to have an implementation before proceeding.
11535 Move to Open, and recommend this be deferred until after the next
11536 Committee Draft has been issued.
11541 2009-10-10 Daniel updated wording to post-concepts.
11546 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1230">1230</a> has a similar proposed resolution
11550 2009-10 Santa Cruz:
11560 <p><b>Proposed resolution:</b></p>
11564 Change 20.7 [function.objects]/2, header
11565 <tt><functional></tt> synopsis as follows:
11568 <blockquote><pre>// 20.7.14, member function adaptors:
11569 template<class R, class T> <i>unspecified</i> mem_fn(R T::*);
11571 <ins>template<class R, class T, class ...Args> <i>unspecified</i> mem_fn(R (T::*)(Args...));</ins>
11572 <ins>template<class R, class T, class ...Args> <i>unspecified</i> mem_fn(R (T::*)(Args...) const);</ins>
11573 <ins>template<class R, class T, class ...Args> <i>unspecified</i> mem_fn(R (T::*)(Args...) volatile);</ins>
11574 <ins>template<class R, class T, class ...Args> <i>unspecified</i> mem_fn(R (T::*)(Args...) const volatile);</ins>
11576 <ins>template<class R, class T, class ...Args> <i>unspecified</i> mem_fn(R (T::*)(Args...) &);</ins>
11577 <ins>template<class R, class T, class ...Args> <i>unspecified</i> mem_fn(R (T::*)(Args...) const &);</ins>
11578 <ins>template<class R, class T, class ...Args> <i>unspecified</i> mem_fn(R (T::*)(Args...) volatile &);</ins>
11579 <ins>template<class R, class T, class ...Args> <i>unspecified</i> mem_fn(R (T::*)(Args...) const volatile &);</ins>
11581 <ins>template<class R, class T, class ...Args> <i>unspecified</i> mem_fn(R (T::*)(Args...) &&);</ins>
11582 <ins>template<class R, class T, class ...Args> <i>unspecified</i> mem_fn(R (T::*)(Args...) const &&);</ins>
11583 <ins>template<class R, class T, class ...Args> <i>unspecified</i> mem_fn(R (T::*)(Args...) volatile &&);</ins>
11584 <ins>template<class R, class T, class ...Args> <i>unspecified</i> mem_fn(R (T::*)(Args...) const volatile &&);</ins>
11585 </pre></blockquote>
11590 Change the prototype list of 20.7.14 [func.memfn] as follows [NB: The
11591 following text, most notably p.2 and p.3 which
11592 discuss influence of the cv-qualification on the definition of the
11593 base class's first template parameter remains
11597 <blockquote><pre>template<class R, class T> <i>unspecified</i> mem_fn(R T::* pm);
11599 <ins>template<class R, class T, class ...Args> <i>unspecified</i> mem_fn(R (T::* pm)(Args...));</ins>
11600 <ins>template<class R, class T, class ...Args> <i>unspecified</i> mem_fn(R (T::* pm)(Args...) const);</ins>
11601 <ins>template<class R, class T, class ...Args> <i>unspecified</i> mem_fn(R (T::* pm)(Args...) volatile);</ins>
11602 <ins>template<class R, class T, class ...Args> <i>unspecified</i> mem_fn(R (T::* pm)(Args...) const volatile);</ins>
11604 <ins>template<class R, class T, class ...Args> <i>unspecified</i> mem_fn(R (T::* pm)(Args...) &);</ins>
11605 <ins>template<class R, class T, class ...Args> <i>unspecified</i> mem_fn(R (T::* pm)(Args...) const &);</ins>
11606 <ins>template<class R, class T, class ...Args> <i>unspecified</i> mem_fn(R (T::* pm)(Args...) volatile &);</ins>
11607 <ins>template<class R, class T, class ...Args> <i>unspecified</i> mem_fn(R (T::* pm)(Args...) const volatile &);</ins>
11609 <ins>template<class R, class T, class ...Args> <i>unspecified</i> mem_fn(R (T::* pm)(Args...) &&);</ins>
11610 <ins>template<class R, class T, class ...Args> <i>unspecified</i> mem_fn(R (T::* pm)(Args...) const &&);</ins>
11611 <ins>template<class R, class T, class ...Args> <i>unspecified</i> mem_fn(R (T::* pm)(Args...) volatile &&);</ins>
11612 <ins>template<class R, class T, class ...Args> <i>unspecified</i> mem_fn(R (T::* pm)(Args...) const volatile &&);</ins>
11613 </pre></blockquote>
11618 Remove 20.7.14 [func.memfn]/5:
11622 <del><i>Remarks:</i> Implementations may implement <tt>mem_fn</tt> as a set of
11623 overloaded function templates.</del>
11634 <h3><a name="921"></a>921. Rational Arithmetic should use template aliases</h3>
11635 <p><b>Section:</b> 20.4.1 [ratio.ratio] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
11636 <b>Submitter:</b> Pablo Halpern <b>Opened:</b> 2008-10-07 <b>Last modified:</b> 2009-10-21</p>
11637 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#ratio.ratio">issues</a> in [ratio.ratio].</p>
11638 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
11639 <p><b>Discussion:</b></p>
11641 The compile-time functions that operate on <tt>ratio<N,D></tt> require the
11642 cumbersome and error-prone "evaluation" of a <tt>type</tt> member using a
11643 meta-programming style that predates the invention of template aliases.
11644 Thus, multiplying three ratios <tt>a</tt>, <tt>b</tt>, and <tt>c</tt> requires the expression:
11647 <blockquote><pre>ratio_multiply<a, ratio_multiply<b, c>::type>::type
11648 </pre></blockquote>
11651 The simpler expression:
11654 <blockquote><pre>ratio_multiply<a, ratio_multiply<b, c>>
11655 </pre></blockquote>
11658 Could be used by if template aliases were employed in the definitions.
11668 Jens: not a complete proposed resolution: "would need to make similar change"
11671 Consensus: We agree with the direction of the issue.
11679 2009-05-11 Daniel adds:
11685 Personally I'm <em>not</em> in favor for the addition of:
11687 <blockquote><pre>typedef ratio type;
11688 </pre></blockquote>
11690 For a reader of the
11691 standard it's usage or purpose is unclear. I haven't seen similar examples
11692 of attempts to satisfy non-feature complete compilers.
11697 2009-05-11 Pablo adds:
11703 The addition of type to the <tt>ratio</tt> template allows the previous style
11704 (i.e., in the prototype implementations) to remain valid and permits the
11705 use of transitional library implementations for C++03 compilers. I do
11706 not feel strongly about its inclusion, however, and leave it up to the
11707 reviewers to decide.
11716 Bill asks for additional discussion in the issue
11717 that spells out more details of the implementation.
11718 Howard points us to issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#948">948</a>
11719 which has at least most of the requested details.
11720 Tom is strongly in favor of overflow-checking at compile time.
11721 Pete points out that there is no change of functionality implied.
11722 We agree with the proposed resolution,
11723 but recommend moving the issue to Review
11724 to allow time to improve the discussion if needed.
11728 2009-07-21 Alisdair adds:
11733 See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1121">1121</a> for a potentially incompatible proposal.
11737 2009-10 Santa Cruz:
11747 <p><b>Proposed resolution:</b></p>
11753 In 20.4 [ratio]/3 change as indicated:
11756 <blockquote><pre>// ratio arithmetic
11757 template <class R1, class R2> <del>struct</del><ins>using</ins> ratio_add<ins> = <em>see below</em></ins>;
11758 template <class R1, class R2> <del>struct</del><ins>using</ins> ratio_subtract<ins> = <em>see below</em></ins>;
11759 template <class R1, class R2> <del>struct</del><ins>using</ins> ratio_multiply<ins> = <em>see below</em></ins>;
11760 template <class R1, class R2> <del>struct</del><ins>using</ins> ratio_divide<ins> = <em>see below</em></ins>;
11761 </pre></blockquote>
11765 In 20.4.1 [ratio.ratio], change as indicated:
11767 <blockquote><pre>namespace std {
11768 template <intmax_t N, intmax_t D = 1>
11771 <ins>typedef ratio type;</ins>
11772 static const intmax_t num;
11773 static const intmax_t den;
11776 </pre></blockquote>
11780 In 20.4.2 [ratio.arithmetic] change as indicated:
11783 <blockquote><pre>template <class R1, class R2> <del>struct</del><ins>using</ins> ratio_add<ins> = <em>see below</em></ins><del>{
11784 typedef <em>see below</em> type;
11790 1 The <del>nested typedef</del> type <tt><ins>ratio_add<R1, R2></ins></tt>
11791 shall be a synonym for <tt>ratio<T1, T2></tt>
11792 where <tt>T1</tt> has the value <tt>R1::num * R2::den + R2::num * R1::den</tt> and <tt>T2</tt>
11793 has the value <tt>R1::den * R2::den</tt>.
11797 <blockquote><pre>template <class R1, class R2> <del>struct</del><ins>using</ins> ratio_subtract<ins> = <em>see below</em></ins><del>{
11798 typedef <em>see below</em> type;
11803 2 The <del>nested typedef</del> type <tt><ins>ratio_subtract<R1, R2></ins></tt>
11804 shall be a synonym for <tt>ratio<T1, T2></tt>
11805 where <tt>T1</tt> has the value <tt>R1::num * R2::den - R2::num * R1::den</tt> and <tt>T2</tt>
11806 has the value <tt>R1::den * R2::den</tt>.
11810 <blockquote><pre>template <class R1, class R2> <del>struct</del><ins>using</ins> ratio_multiply<ins> = <em>see below</em></ins><del>{
11811 typedef <em>see below</em> type;
11816 3 The <del>nested typedef</del> type <tt><ins>ratio_multiply<R1, R2></ins></tt>
11817 shall be a synonym for <tt>ratio<T1, T2></tt>
11818 where <tt>T1</tt> has the value <tt>R1::num * R2::num</tt> and <tt>T2</tt> has the value <tt>R1::den * R2::den</tt>.
11822 <blockquote><pre>template <class R1, class R2> <del>struct</del><ins>using</ins> ratio_divide<ins> = <em>see below</em></ins><del>{
11823 typedef <em>see below</em> type;
11828 4 The <del>nested typedef</del> type <tt><ins>ratio_divide<R1, R2></ins></tt>
11829 shall be a synonym for <tt>ratio<T1, T2></tt>
11830 where <tt>T1</tt> has the value <tt>R1::num * R2::den</tt> and <tt>T2</tt> has the value <tt>R1::den * R2::num</tt>.
11837 In 20.9.3.1 [time.duration.cons]/4 change as indicated:
11841 <i>Requires:</i> <tt>treat_as_floating_point<rep>::value</tt> shall be true or
11842 <tt>ratio_divide<Period2, period>::<del>type::</del>den</tt> shall be 1.[..]
11848 In 20.9.3.7 [time.duration.cast]/2 change as indicated:
11852 <i>Returns:</i> Let CF be <tt>ratio_divide<Period, typename
11853 ToDuration::period><del>::type</del></tt>, and [..]
11864 <h3><a name="929"></a>929. Thread constructor</h3>
11865 <p><b>Section:</b> 30.3.1.2 [thread.thread.constr] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Review">Review</a>
11866 <b>Submitter:</b> Anthony Williams <b>Opened:</b> 2008-10-23 <b>Last modified:</b> 2009-10-25</p>
11867 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#thread.thread.constr">active issues</a> in [thread.thread.constr].</p>
11868 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#thread.thread.constr">issues</a> in [thread.thread.constr].</p>
11869 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Review">Review</a> status.</p>
11870 <p><b>Discussion:</b></p>
11872 <p><b>Addresses UK 323</b></p>
11875 The <tt>thread</tt> constructor for starting a new thread with a function and
11876 arguments is overly constrained by the signature requiring rvalue
11877 references for <tt>func</tt> and <tt>args</tt> and the <tt>CopyConstructible</tt> requirements
11878 for the elements of <tt>args</tt>. The use of an rvalue reference for the
11879 function restricts the potential use of a plain function name, since
11880 the type of the bound parameter will be deduced to be a function
11881 reference and decay to pointer-to-function will not happen. This
11882 therefore complicates the implementation in order to handle a simple
11883 case. Furthermore, the use of rvalue references for args prevents the
11884 array to pointer decay. Since arrays are not <tt>CopyConstructible</tt> or even
11885 <tt>MoveConstructible</tt>, this essentially prevents the passing of arrays as
11886 parameters. In particular it prevents the passing of string literals.
11887 Consequently a simple case such as
11890 <blockquote><pre>void f(const char*);
11891 std::thread t(f,"hello");
11892 </pre></blockquote>
11895 is ill-formed since the type of the string literal is <tt>const char[6]</tt>.
11899 By changing the signature to take all parameters by value we can
11900 eliminate the <tt>CopyConstructible</tt> requirement and permit the use of
11901 arrays, as the parameter passing semantics will cause the necessary
11902 array-to-pointer decay. They will also cause the function name to
11903 decay to a pointer to function and allow the implementation to handle
11904 functions and function objects identically.
11908 The new signature of the <tt>thread</tt> constructor for a function and
11912 <blockquote><pre>template<typename F,typename... Args>
11913 thread(F,Args... args);
11914 </pre></blockquote>
11917 Since the parameter pack <tt>Args</tt> can be empty, the single-parameter
11918 constructor that takes just a function by value is now redundant.
11928 I agree with everything Anthony says in this issue. However I believe we
11929 can optimize in such a way as to get the pass-by-value behavior with the
11930 pass-by-rvalue-ref performance. The performance difference is that the latter
11931 removes a <tt>move</tt> when passing in an lvalue.
11935 This circumstance is very analogous to <tt>make_pair</tt> (20.3.4 [pairs])
11936 where we started with passing by const reference, changed to pass by value to
11937 get pointer decay, and then changed to pass by rvalue reference, but modified with
11938 <tt>decay<T></tt> to retain the pass-by-value behavior. If we were to
11939 apply the same solution here it would look like:
11942 <blockquote><pre><del>template <class F> explicit thread(F f);</del>
11943 template <class F, class ...Args> thread(F&& f, Args&&... args);
11947 -4- <i>Requires:</i> <tt>F</tt> and each <tt>Ti</tt> in <tt>Args</tt> shall be <del><tt>CopyConstructible</tt>
11948 if an lvalue and otherwise</del> <tt>MoveConstructible</tt>.
11949 <tt><i>INVOKE</i>(f, w1, w2, ..., wN)</tt> (20.7.2 [func.require]) shall be a valid expression for
11950 some values <tt>w1, w2, ... , wN,</tt> where <tt>N == sizeof...(Args)</tt>.
11953 -5- <i>Effects:</i> Constructs an object of type <tt>thread</tt>
11954 <del>and executes <tt><i>INVOKE</i>(f, t1, t2, ..., tN)</tt> in a new
11955 thread of execution, where <tt>t1, t2, ..., tN</tt> are the values in <tt>args...</tt></del>.
11957 the following objects in memory which is accessible to a new thread of execution
11960 <blockquote><pre><ins>typename decay<F>::type g(std::forward<F>(f));</ins>
11961 <ins>tuple<typename decay<Args>::type...> w(std::forward<Args>(args)...);</ins>
11962 </pre></blockquote>
11964 <ins>The new thread of
11965 execution executes <tt><i>INVOKE</i>(g, wi...)</tt> where the <tt>wi...</tt> refers
11966 to the elements stored in the <tt>tuple w</tt>.</ins>
11967 Any return value from <tt>g</tt> is ignored.
11968 <del>If <tt>f</tt> terminates with an uncaught exception, <tt>std::terminate()</tt> shall be called.</del>
11969 <ins>If the evaluation of <tt><i>INVOKE</i>(g, wi...)</tt> terminates
11970 with an uncaught exception, <tt>std::terminate()</tt> shall be called [<i>Note:</i>
11971 <tt>std::terminate()</tt> could be called before entering <tt>g</tt>. -- <i>end note</i>]. Any
11972 exception thrown before the evaluation of <tt><i>INVOKE</i></tt> has started shall be
11973 catchable in the calling thread.</ins>
11979 Text referring to when <tt>terminate()</tt> is called was contributed by Ganesh.
11989 We agree with the proposed resolution,
11990 but would like the final sentence to be reworded
11991 since "catchable" is not a term of art (and is used nowhere else).
12002 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2901.pdf">N2901</a>.
12005 Howard to open a separate issue to remove (<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1176">1176</a>).
12008 In Frankfurt there is no consensus for removing the variadic constructor.
12013 2009-10 Santa Cruz:
12018 We want to move forward with this issue. If we later take it out via <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1176">1176</a>
12019 then that's ok too. Needs small group to improve wording.
12023 2009-10 Santa Cruz:
12029 Stefanus provided revised wording. Moved to Review Here is the original wording:
12033 Modify the class definition of <tt>std::thread</tt> in 30.3.1 [thread.thread.class] to remove the
12034 following signature:
12037 <blockquote><pre><del>template<class F> explicit thread(F f);</del>
12038 template<class F, class ... Args> <ins>explicit</ins> thread(F&& f, Args&& ... args);
12039 </pre></blockquote>
12042 Modify 30.3.1.2 [thread.thread.constr] to replace the constructors prior to paragraph 4 with
12043 the single constructor as above. Replace paragraph 4 - 6 with the
12049 -4- <i>Requires:</i> <tt>F</tt> and each <tt>Ti</tt> in <tt>Args</tt> shall be <del><tt>CopyConstructible</tt>
12050 if an lvalue and otherwise</del> <tt>MoveConstructible</tt>.
12051 <tt><i>INVOKE</i>(f, w1, w2, ..., wN)</tt> (20.7.2 [func.require]) shall be a valid expression for
12052 some values <tt>w1, w2, ... , wN,</tt> where <tt>N == sizeof...(Args)</tt>.
12055 -5- <i>Effects:</i> Constructs an object of type <tt>thread</tt>
12056 <del>and executes <tt><i>INVOKE</i>(f, t1, t2, ..., tN)</tt> in a new
12057 thread of execution, where <tt>t1, t2, ..., tN</tt> are the values in <tt>args...</tt></del>.
12059 the following objects:</ins>
12061 <blockquote><pre><ins>typename decay<F>::type g(std::forward<F>(f));</ins>
12062 <ins>tuple<typename decay<Args>::type...> w(std::forward<Args>(args)...);</ins>
12063 </pre></blockquote>
12065 <ins>and executes <tt><i>INVOKE</i>(g, wi...)</tt> in a new thread of execution.
12066 These objects shall be destroyed when the new thread of execution completes.</ins>
12067 Any return value from <tt>g</tt> is ignored.
12068 <del>If <tt>f</tt> terminates with an uncaught exception, <tt>std::terminate()</tt> shall be called.</del>
12069 <ins>If the evaluation of <tt><i>INVOKE</i>(g, wi...)</tt> terminates
12070 with an uncaught exception, <tt>std::terminate()</tt> shall be called [<i>Note:</i>
12071 <tt>std::terminate()</tt> could be called before entering <tt>g</tt>. -- <i>end note</i>]. Any
12072 exception thrown before the evaluation of <tt><i>INVOKE</i></tt> has started shall be
12073 catchable in the calling thread.</ins>
12076 -6- <i>Synchronization:</i> The invocation of the constructor <i>happens before</i> the
12077 invocation of <del><tt>f</tt></del> <ins><tt>g</tt></ins>.
12085 <p><b>Proposed resolution:</b></p>
12087 Modify the class definition of <tt>std::thread</tt> in 30.3.1 [thread.thread.class] to remove the
12088 following signature:
12091 <blockquote><pre><del>template<class F> explicit thread(F f);</del>
12092 template<class F, class ... Args> <ins>explicit</ins> thread(F&& f, Args&& ... args);
12093 </pre></blockquote>
12096 Modify 30.3.1.2 [thread.thread.constr] to replace the constructors prior to paragraph 4 with
12097 the single constructor as above. Replace paragraph 4 - 6 with the
12103 -4- <i>Requires:</i> <tt>F</tt> and each <tt>Ti</tt> in <tt>Args</tt>
12104 shall be <del><tt>CopyConstructible</tt> if an lvalue and
12105 otherwise</del> <tt>MoveConstructible</tt>. <tt><i>INVOKE</i>(f, w1, w2,
12106 ..., wN)</tt> (20.7.2 [func.require]) shall be a valid expression
12107 for some values <tt>w1, w2, ... , wN,</tt> where <tt>N ==
12108 sizeof...(Args)</tt>.
12112 -5- <i>Effects:</i> Constructs an object of type <tt>thread</tt> <del>and executes
12113 <tt>INVOKE(f, t1, t2, ..., tN)</tt> in a new thread of execution, where
12114 <tt>t1, t2, ..., tN</tt> are the values in <tt>args...</tt></del>.
12115 <ins>Given a function as follows:</ins>
12117 value from <tt>f</tt> is ignored. If <tt>f</tt> terminates with an
12118 uncaught exception, <tt>std::terminate()</tt> shall be called.</del>
12121 <blockquote><pre><ins>
12122 template<typename T> typename decay<T>::type decay_copy(T&& v)
12123 { return std::forward<T>(v); }
12124 </ins></pre></blockquote>
12127 The new thread of execution executes <tt>INVOKE(decay_copy(f),
12128 decay_copy(args)...)</tt> with the calls to <tt>decay_copy()</tt> being evaluated in
12129 the constructing thread. Any return value from this invocation is
12130 ignored. [<i>Note:</i> this implies any exceptions not thrown from the
12131 invocation of the copy of <tt>f</tt> will be thrown in the constructing thread,
12132 not the new thread. — <i>end note</i>].
12136 -6- <i>Synchronization:</i> The invocation of the constructor <i>happens before</i> the
12137 invocation of <ins>copy of</ins> <tt>f</tt>.
12147 <h3><a name="932"></a>932. <tt>unique_ptr(pointer p)</tt> for pointer deleter types</h3>
12148 <p><b>Section:</b> 20.8.14.2.1 [unique.ptr.single.ctor] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
12149 <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2008-11-26 <b>Last modified:</b> 2009-10-22</p>
12150 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#unique.ptr.single.ctor">active issues</a> in [unique.ptr.single.ctor].</p>
12151 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#unique.ptr.single.ctor">issues</a> in [unique.ptr.single.ctor].</p>
12152 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
12153 <p><b>Discussion:</b></p>
12155 <p><b>Addresses US 79</b></p>
12158 20.8.14.2.1 [unique.ptr.single.ctor]/5 no longer requires for <tt>D</tt>
12159 not to be a pointer type. I believe this restriction was accidently removed
12160 when we relaxed the completeness reuqirements on <tt>T</tt>. The restriction
12161 needs to be put back in. Otherwise we have a run time failure that could
12162 have been caught at compile time:
12166 unique_ptr<int, void(*)(void*)> p1(malloc(sizeof(int))); <font color="#c80000">// should not compile</font>
12167 } <font color="#c80000">// p1.~unique_ptr() dereferences a null function pointer</font>
12168 unique_ptr<int, void(*)(void*)> p2(malloc(sizeof(int)), free); <font color="#c80000">// ok</font>
12169 </pre></blockquote>
12177 Recommend Tentatively Ready.
12186 Moved from Tentatively Ready to Open only because the wording needs to be
12187 improved for enable_if type constraining, possibly following Robert's
12198 We need to consider whether some requirements in the Requires paragraphs
12199 of [unique.ptr] should instead be Remarks.
12202 Leave Open. Howard to provide wording, and possibly demonstrate how this
12203 can be implemented using enable_if.
12208 2009-07-27 Howard adds:
12214 The two constructors to which this issue applies are not easily constrained
12215 with <tt>enable_if</tt> as they are not templated:
12218 <blockquote><pre>unique_ptr();
12219 explicit unique_ptr(pointer p);
12220 </pre></blockquote>
12223 To "SFINAE" these constructors away would take heroic effort such as specializing
12224 the entire <tt>unique_ptr</tt> class template on pointer deleter types. There
12225 is insufficient motivation for such heroics. Here is the expected and
12226 reasonable implementation for these constructors:
12229 <blockquote><pre>unique_ptr()
12232 static_assert(!is_pointer<deleter_type>::value,
12233 "unique_ptr constructed with null function pointer deleter");
12235 explicit unique_ptr(pointer p)
12238 static_assert(!is_pointer<deleter_type>::value,
12239 "unique_ptr constructed with null function pointer deleter");
12241 </pre></blockquote>
12244 I.e. just use <tt>static_assert</tt> to verify that the constructor is not
12245 instantiated with a function pointer for a deleter. The compiler will automatically
12246 take care of issuing a diagnostic if the deleter is a reference type (uninitialized
12251 In keeping with our discussions in Frankfurt, I'm moving this requirement on
12252 the implementation from the Requires paragraph to a Remarks paragraph.
12258 2009-08-17 Daniel adds:
12264 It is insufficient to require a diagnostic. This doesn't imply an
12266 as of 1.3.3 [defns.diagnostic] (a typical alternative would be a compiler
12268 exactly that seems to be the intend. I suggest to use the following
12273 <i>Remarks:</i> The program shall be ill-formed if this constructor is
12274 instantiated when <tt>D</tt> is a pointer type or reference type.
12278 Via the general standard rules of 1.4 [intro.compliance] the "diagnostic
12279 required" is implied.
12285 2009-10 Santa Cruz:
12295 <p><b>Proposed resolution:</b></p>
12297 Change the description of the default constructor in 20.8.14.2.1 [unique.ptr.single.ctor]:
12300 <blockquote><pre>unique_ptr();
12304 -1- <i>Requires:</i> <tt>D</tt> shall be default constructible, and that construction
12305 shall not throw an exception. <del><tt>D</tt> shall
12306 not be a reference type or pointer type (diagnostic required).</del>
12310 <i>Remarks:</i> The program shall be ill-formed if this constructor is
12311 instantiated when <tt>D</tt> is a pointer type or reference type.
12318 Add after 20.8.14.2.1 [unique.ptr.single.ctor]/8:
12321 <blockquote><pre>unique_ptr(pointer p);
12326 <i>Remarks:</i> The program shall be ill-formed if this constructor is
12327 instantiated when <tt>D</tt> is a pointer type or reference type.
12338 <h3><a name="939"></a>939. Problem with <tt>std::identity</tt> and reference-to-temporaries</h3>
12339 <p><b>Section:</b> 20.3.3 [forward] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
12340 <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2008-12-11 <b>Last modified:</b> 2009-10-29</p>
12341 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#forward">issues</a> in [forward].</p>
12342 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
12343 <p><b>Discussion:</b></p>
12345 <tt>std::identity</tt> takes an argument of type <tt>T const &</tt>
12346 and returns a result of <tt>T const &</tt>.
12349 Unfortunately, this signature will accept a value of type other than <tt>T</tt> that
12350 is convertible-to-<tt>T</tt>, and then return a reference to the dead temporary. The
12351 constraint in the concepts version simply protects against returning
12352 reference-to-<tt>void</tt>.
12359 i/ Return-by-value, potentially slicing bases and rejecting non-copyable
12363 ii/ Provide an additional overload:
12365 <blockquote><pre>template< typename T >
12366 template operator( U & ) = delete;
12367 </pre></blockquote>
12369 This seems closer on intent, but moves beyond the original motivation for
12370 the operator, which is compatibility with existing (non-standard)
12374 iii/ Remove the <tt>operator()</tt> overload. This restores the original definition
12375 of the <tt>identity</tt>, although now effectively a type_trait rather than part of
12376 the perfect forwarding protocol.
12379 iv/ Remove <tt>std::identity</tt> completely; its original reason to exist is
12380 replaced with the <tt>IdentityOf</tt> concept.
12384 My own preference is somewhere between (ii) and (iii) - although I stumbled
12385 over the issue with a specific application hoping for resolution (i)!
12394 We dislike options i and iii, and option ii seems like overkill.
12395 If we remove it (option iv), implementers can still provide it under a
12399 Move to Open pending wording (from Alisdair) for option iv.
12404 2009-05-23 Alisdair provided wording for option iv.
12409 2009-07-20 Alisdair adds:
12415 I'm not sure why this issue was not discussed at Frankfurt (or I missed
12416 the discussion) but the rationale is now fundamentally flawed. With the
12417 removal of concepts, <tt>std::identity</tt> again becomes an important library
12418 type so we cannot simply remove it.
12421 At that point, we need to pick one of the other suggested resolutions,
12422 but have no guidance at the moment.
12427 2009-07-20 Howard adds:
12433 I believe the rationale for not addressing this issue in Frankfurt was that it did
12434 not address a national body comment.
12437 I also believe that removal of <tt>identity</tt> is still a practical option as
12438 my latest reformulation of <tt>forward</tt>, which is due to comments suggested
12439 at Summit, no longer uses <tt>identity</tt>. :-)
12442 <blockquote><pre>template <class T, class U,
12443 class = typename enable_if
12445 !is_lvalue_reference<T>::value ||
12446 is_lvalue_reference<T>::value &&
12447 is_lvalue_reference<U>::value
12449 class = typename enable_if
12451 is_same<typename remove_all<T>::type,
12452 typename remove_all<U>::type>::value
12456 forward(U&& t)
12458 return static_cast<T&&>(t);
12464 The above code assumes acceptance of <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1120">1120</a> for the definition of
12465 <tt>remove_all</tt>. This is just to make the syntax a little more palatable.
12466 Without this trait the above is still very implementable.
12473 Paper with rationale is on the way ... <i>really</i>, I promise this time! ;-)
12478 2009-07-30 Daniel adds: See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#823">823</a> for an alternative resolution.
12483 2009-10 Santa Cruz:
12488 Move to Ready. Howard will update proposed wording to reflect current draft.
12493 <p><b>Proposed resolution:</b></p>
12495 Strike from 20.3 [utility]:
12498 <blockquote><pre><del>template <class T> struct identity;</del>
12499 </pre></blockquote>
12502 Remove from 20.3.3 [forward]:
12506 <pre><del>template <class T> struct identity {
12509 const T& operator()(const T& x) const;
12512 <del>const T& operator()(const T& x) const;</del>
12515 <del>-2- <i>Returns:</i> <tt>x</tt></del>
12525 <h3><a name="940"></a>940. <tt>std::distance</tt></h3>
12526 <p><b>Section:</b> 24.4.4 [iterator.operations] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
12527 <b>Submitter:</b> Thomas <b>Opened:</b> 2008-12-14 <b>Last modified:</b> 2009-10-22</p>
12528 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#iterator.operations">active issues</a> in [iterator.operations].</p>
12529 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#iterator.operations">issues</a> in [iterator.operations].</p>
12530 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
12531 <p><b>Discussion:</b></p>
12533 <p><b>Addresses UK 270</b></p>
12536 Regarding the <tt>std::distance</tt> - function, 24.4.4 [iterator.operations]
12541 number of increments or decrements needed to get from first to last.
12544 This sentence is completely silent about the sign of the return value.
12545 24.4.4 [iterator.operations] / 1 gives more information about the
12546 underlying operations, but
12547 again no inferences about the sign can be made.
12548 Strictly speaking, that is taking that sentence literally, I think this
12549 sentence even implies a positive return value in all cases, as the
12550 number of increments or decrements is clearly a ratio scale variable,
12551 with a natural zero bound.
12554 Practically speaking, my implementations did what common sense and
12555 knowledge based on pointer arithmetic forecasts, namely a positive sign
12556 for increments (that is, going from <tt>first</tt> to <tt>last</tt> by <tt>operator++</tt>), and a
12557 negative sign for decrements (going from <tt>first</tt> to <tt>last</tt> by <tt>operator--</tt>).
12560 Here are my two questions:
12563 First, is that paragraph supposed to be interpreted in the way what I
12564 called 'common sense', that is negative sign for decrements ? I am
12565 fairly sure that's the supposed behavior, but a double-check here in
12566 this group can't hurt.
12569 Second, is the present wording (2003 standard version - no idea about
12570 the draft for the upcoming standard) worth an edit to make it a bit more
12571 sensible, to mention the sign of the return value explicitly ?
12581 My first thought was that resolution <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#204">204</a> would already cover the
12582 issue report, but it seems that current normative wording is in
12583 contradiction to that resolution:
12588 <a href="" ref="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2798.pdf">N2798</a>,
12589 24.4.4 [iterator.operations]/ p.4 says:
12593 <i>Effects:</i> Returns the number of increments or decrements needed to get
12594 from <tt>first</tt> to <tt>last</tt>.
12598 IMO the part " or decrements" is in contradiction to p. 5 which says
12602 <i>Requires:</i> <tt>last</tt> shall be reachable from <tt>first</tt>.
12606 because "reachable" is defined in X [iterator.concepts]/7 as
12610 An iterator <tt>j</tt> is called reachable from an iterator <tt>i</tt> if and only if
12612 sequence of applications of the expression <tt>++i</tt> that makes <tt>i == j</tt>.[..]
12616 Here is wording that would be consistent with this definition of "reachable":
12620 Change 24.4.4 [iterator.operations] p4 as follows:
12624 <i>Effects:</i> Returns the number of increments <del>or decrements</del>
12625 needed to get from <tt>first</tt> to <tt>last</tt>.
12631 Thomas adds more discussion and an alternative view point
12632 <a href="http://groups.google.com/group/comp.std.c++/browse_thread/thread/e8e46dcda0a5d797#">here</a>.
12641 The proposed wording below was verbally agreed to. Howard provided.
12650 Pete reports that a recent similar change has been made
12651 for the <tt>advance()</tt> function.
12654 We agree with the proposed resolution.
12655 Move to Tentatively Ready.
12665 Moved from Tentatively Ready to Open only because the wording needs to be
12666 tweaked for concepts removal.
12675 Leave Open pending arrival of a post-Concepts WD.
12679 2009-10-14 Daniel provided de-conceptified wording.
12684 2009-10 Santa Cruz:
12689 Move to Ready, replacing the Effects clause in the proposed wording with
12690 "If InputIterator meets the requirements of random access iterator then
12691 returns (last - first), otherwise returns the number of increments
12692 needed to get from first to list.".
12697 <p><b>Proposed resolution:</b></p>
12701 Change 24.2.5 [random.access.iterators], Table 105 as indicated [This change is not
12702 essential but it simplifies the specification] for the row with
12703 expression "<tt>b - a</tt>"
12704 and the column Operational semantics:
12707 <blockquote><pre><del>(a < b) ? </del>distance(a,b)
12708 <del>: -distance(b,a)</del>
12709 </pre></blockquote>
12714 Change 24.4.4 [iterator.operations]/4+5 as indicated:
12717 <blockquote><pre>template<class InputIterator>
12718 typename iterator_traits<InputIterator>::difference_type
12719 distance(InputIterator first, InputIterator last);
12723 4 <i>Effects:</i> <ins>If <tt>InputIterator</tt> meets the requirements
12724 of random access iterator then returns <tt>(last - first)</tt>,
12725 otherwise</ins> <del>R</del><ins>r</ins>eturns the number of increments
12726 <del>or decrements</del> needed to get from <tt>first</tt> to
12731 5 <i>Requires:</i> <ins>If <tt>InputIterator</tt> meets the requirements
12732 of random access iterator then <tt>last</tt> shall be reachable from
12733 <tt>first</tt> or <tt>first</tt> shall be reachable from <tt>last</tt>,
12734 otherwise</ins> <tt>last</tt> shall be reachable from <tt>first</tt>.
12750 <h3><a name="950"></a>950. unique_ptr converting ctor shouldn't accept array form</h3>
12751 <p><b>Section:</b> 20.8.14.2.1 [unique.ptr.single.ctor] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
12752 <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-01-07 <b>Last modified:</b> 2009-10-21</p>
12753 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#unique.ptr.single.ctor">active issues</a> in [unique.ptr.single.ctor].</p>
12754 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#unique.ptr.single.ctor">issues</a> in [unique.ptr.single.ctor].</p>
12755 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
12756 <p><b>Discussion:</b></p>
12758 <tt>unique_ptr</tt>'s of array type should not convert to
12759 <tt>unique_ptr</tt>'s which do not have an array type.
12762 <blockquote><pre>struct Deleter
12764 void operator()(void*) {}
12769 unique_ptr<int[], Deleter> s;
12770 unique_ptr<int, Deleter> s2(std::move(s)); <font color="#c80000">// should not compile</font>
12772 </pre></blockquote>
12781 Walter: Does the "diagnostic required" apply to both arms of the "and"?
12784 Tom Plum: suggest to break into several sentences
12787 Walter: suggest "comma" before the "and" in both places
12799 The post-Summit comments have been applied to the proposed resolution.
12800 We now agree with the proposed resolution.
12801 Move to Tentatively Ready.
12810 Moved from Tentatively Ready to Open only because the wording needs to be
12811 improved for enable_if type constraining, possibly following Robert's
12816 2009-08-01 Howard updates wording and sets to Review.
12821 2009-10 Santa Cruz:
12831 <p><b>Proposed resolution:</b></p>
12833 Change 20.8.14.2.1 [unique.ptr.single.ctor]:
12837 <pre>template <class U, class E> unique_ptr(unique_ptr<U, E>&& u);
12841 -20- <i>Requires:</i> If <tt>D</tt> is not a reference type,
12842 construction of the deleter <tt>D</tt> from an rvalue of type <tt>E</tt>
12843 shall be well formed and shall not throw an exception. <del>If <tt>D</tt> is
12844 a reference type, then <tt>E</tt> shall be the same type as <tt>D</tt>
12845 (diagnostic required). <tt>unique_ptr<U, E>::pointer</tt> shall be
12846 implicitly convertible to <tt>pointer</tt>. [<i>Note:</i> These requirements
12847 imply that <tt>T</tt> and <tt>U</tt> are complete types. — <i>end note</i>]</del>
12851 <i>Remarks:</i> If <tt>D</tt> is
12852 a reference type, then <tt>E</tt> shall be the same type as <tt>D</tt>, else this
12853 constructor shall not participate in overload resolution. <tt>unique_ptr<U, E>::pointer</tt> shall be
12854 implicitly convertible to <tt>pointer</tt>, else this
12855 constructor shall not participate in overload resolution. <tt>U</tt> shall not be
12856 an array type, else this
12857 constructor shall not participate in overload resolution. [<i>Note:</i> These requirements
12858 imply that <tt>T</tt> and <tt>U</tt> are complete types. — <i>end note</i>]
12865 Change 20.8.14.2.3 [unique.ptr.single.asgn]:
12869 <pre>template <class U, class E> unique_ptr& operator=(unique_ptr<U, E>&& u);
12873 -6- <i>Requires:</i> Assignment of the deleter <tt>D</tt> from an rvalue
12874 <tt>D</tt> shall not throw an exception. <del><tt>unique_ptr<U,
12875 E>::pointer</tt> shall be implicitly convertible to <tt>pointer</tt>.
12876 [<i>Note:</i> These requirements imply that <tt>T</tt> and <tt>U</tt>
12877 are complete types. — <i>end note</i>]</del>
12881 <i>Remarks:</i> <tt>unique_ptr<U,
12882 E>::pointer</tt> shall be implicitly convertible to <tt>pointer</tt>, else this
12883 operator shall not participate in overload resolution.
12884 <tt>U</tt> shall not be an array type, else this
12885 operator shall not participate in overload resolution.
12886 [<i>Note:</i> These requirements imply that <tt>T</tt> and <tt>U</tt>
12887 are complete types. — <i>end note</i>]
12899 <h3><a name="951"></a>951. Various threading bugs #1</h3>
12900 <p><b>Section:</b> 20.9.2.1 [time.traits.is_fp] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
12901 <b>Submitter:</b> Pete Becker <b>Opened:</b> 2009-01-07 <b>Last modified:</b> 2009-10-23</p>
12902 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
12903 <p><b>Discussion:</b></p>
12906 Related to <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#953">953</a>.
12910 20.9.2.1 [time.traits.is_fp] says that the type <tt>Rep</tt> "is
12911 assumed to be ... a class emulating an integral type." What are the
12912 requirements for such a type?
12915 2009-05-10 Howard adds:
12920 <tt>IntegralLike</tt>.
12929 As with issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#953">953</a>,
12930 we recommend this issue be addressed in the context of providing concepts for the entire <tt>thread</tt> header.
12933 We look forward to proposed wording.
12941 2009-08-01 Howard adds:
12947 I have surveyed all clauses of 20.9.2.2 [time.traits.duration_values],
12948 20.9.2.3 [time.traits.specializations] and 20.9.3 [time.duration].
12949 I can not find any clause which involves the use of a <tt>duration::rep</tt> type
12950 where the requirements on the <tt>rep</tt> type are not clearly spelled out.
12951 These requirements were carefully crafted to allow any arithmetic type, or
12952 any user-defined type emulating an arithmetic type.
12956 Indeed, <tt>treat_as_floating_point</tt>
12957 becomes completely superfluous if <tt>duration::rep</tt> can never be a class type.
12961 There will be some <tt>Rep</tt> types which will not meet the requirements of
12962 <em>every</em> <tt>duration</tt> operation. This is no different than the fact
12963 that <tt>vector<T></tt> can easily be used for types <tt>T</tt> which are
12964 not <tt>DefaultConstructible</tt>, even though some members of <tt>vector<T></tt>
12965 require <tt>T</tt> to be <tt>DefaultConstructible</tt>. This is why the requirements
12966 on <tt>Rep</tt> are specified for each operation individually.
12970 In 20.9.2.1 [time.traits.is_fp] p1:
12973 <blockquote><pre>template <class Rep> struct treat_as_floating_point
12974 : is_floating_point<Rep> { };
12978 The <tt>duration</tt> template uses the <tt>treat_as_floating_point</tt> trait to help
12979 determine if a <tt>duration</tt> object can be converted to another <tt>duration</tt>
12980 with a different tick period. If <tt>treat_as_floating_point<Rep>::value</tt> is
12981 <tt>true</tt>, then <tt>Rep</tt> is a floating-point type and implicit conversions are
12982 allowed among <tt>duration</tt>s. Otherwise, the implicit convertibility depends
12983 on the tick periods of the <tt>duration</tt>s. If <tt>Rep</tt> is <u>a class type which
12984 emulates a floating-point type</u>, the author of <tt>Rep</tt> can specialize
12985 <tt>treat_as_floating_point</tt> so that <tt>duration</tt> will treat this <tt>Rep</tt> as if it
12986 were a floating-point type. Otherwise <tt>Rep</tt> is assumed to be an integral
12987 type or <u>a class emulating an integral type</u>.
12992 The phrases "a class type which emulates a floating-point type" and
12993 "a class emulating an integral type" are clarifying phrases which refer to
12994 the summation of all the requirements on the <tt>Rep</tt> type specified in
12995 detail elsewhere (and <em>should not</em> be repeated here).
12999 This specification has been implemented, now multiple times, and the experience
13000 has been favorable. The current specification clearly specifies the requirements
13001 at each point of use (though I'd be happy to fix any place I may have missed,
13002 but none has been pointed out).
13006 I am amenable to improved wording of this paragraph (and any others), but do not have any
13007 suggestions for improved wording at this time. I am <em>strongly</em> opposed to
13008 changes which would significantly alter the semantics of the
13009 specification under 20.9 [time] without firmly grounded and
13010 documented rationale, example implementation, testing, and user
13011 experience which relates a positive experience.
13015 I recommend NAD unless someone wants to produce some clarifying wording.
13020 2009-10 Santa Cruz:
13025 Stefanus to provide wording to turn this into a note.
13030 <p><b>Proposed resolution:</b></p>
13039 <h3><a name="953"></a>953. Various threading bugs #3</h3>
13040 <p><b>Section:</b> 20.9.1 [time.clock.req] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
13041 <b>Submitter:</b> Pete Becker <b>Opened:</b> 2009-01-07 <b>Last modified:</b> 2009-10-23</p>
13042 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#time.clock.req">active issues</a> in [time.clock.req].</p>
13043 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#time.clock.req">issues</a> in [time.clock.req].</p>
13044 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
13045 <p><b>Discussion:</b></p>
13048 Related to <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#951">951</a>.
13052 20.9.1 [time.clock.req] says that a clock's <tt>rep</tt> member is "an
13053 arithmetic type or a class emulating an arithmetic type." What are the
13054 requirements for such a type?
13058 2009-05-10 Howard adds:
13063 This wording was aimed directly at the <tt>ArithmeticLike</tt> concept.
13072 We recommend this issue be addressed in the context of providing concepts
13073 for the entire <tt>thread</tt> header.
13076 May resolve for now by specifying arithmetic types,
13077 and in future change to <tt>ArithmeticLike</tt>.
13078 However, Alisdair believes this is not feasible.
13084 We look forward to proposed wording. Move to Open.
13089 2009-08-01 Howard adds:
13094 See commented dated 2009-08-01 in <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#951">951</a>.
13098 2009-10 Santa Cruz:
13103 Stefanus to provide wording to turn this into a note.
13108 <p><b>Proposed resolution:</b></p>
13117 <h3><a name="954"></a>954. Various threading bugs #4</h3>
13118 <p><b>Section:</b> 20.9.1 [time.clock.req] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
13119 <b>Submitter:</b> Pete Becker <b>Opened:</b> 2009-01-07 <b>Last modified:</b> 2009-10-21</p>
13120 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#time.clock.req">active issues</a> in [time.clock.req].</p>
13121 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#time.clock.req">issues</a> in [time.clock.req].</p>
13122 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
13123 <p><b>Discussion:</b></p>
13125 Table 55 -- Clock Requirements (in 20.9.1 [time.clock.req])
13130 the requirements for <tt>C1::time_point</tt> require <tt>C1</tt> and <tt>C2</tt>
13131 to "refer to the same epoch", but "epoch" is not defined.
13134 "Different clocks may share a <tt>time_point</tt> definition if it is
13135 valid to compare their <tt>time_point</tt>s by comparing their
13136 respective <tt>duration</tt>s." What does "valid" mean here? And, since
13137 <tt>C1::rep</tt> is "**THE** representation type of the native
13138 <tt>duration</tt> and <tt>time_point</tt>" (emphasis added), there
13139 doesn't seem to be much room for some other representation.
13142 <tt>C1::is_monotonic</tt> has type "<tt>const bool</tt>". The
13143 "<tt>const</tt>" should be removed.
13146 <tt>C1::period</tt> has type <tt>ratio</tt>. <tt>ratio</tt> isn't a type,
13147 it's a template. What is the required type?
13152 2009-05-10 Howard adds:
13159 "epoch" is purposefully not defined beyond the common English
13160 <a href="http://www.dictionary.net/epoch">definition</a>. The C standard
13161 also chose not to define epoch, though POSIX did. I believe it is a strength
13162 of the C standard that epoch is not defined. When it is known that two <tt>time_point</tt>s
13163 refer to the same epoch, then a definition of the epoch is not needed to compare
13164 the two <tt>time_point</tt>s, or subtract them.
13167 A <tt>time_point</tt> and a <tt>Clock</tt> implicitly refer to an (unspecified) epoch.
13168 The <tt>time_point</tt> represents an offset (<tt>duration</tt>) from an epoch.
13177 may share a <tt>time_point</tt>
13178 definition if it is valid to
13179 compare their <tt>time_point</tt>s by
13180 comparing their respective
13181 <tt>duration</tt>s.
13185 is redundant and could be removed. I believe the sentence which follows the above:
13189 <tt>C1</tt> and <tt>C2</tt> shall refer to the same epoch.
13193 is sufficient. If two clocks share the same epoch, then by definition, comparing
13194 their <tt>time_point</tt>s is valid.
13198 <tt>is_monotonic</tt> is meant to never change (be <tt>const</tt>). It is also
13199 desired that this value be usable in compile-time computation and branching.
13203 This should probably instead be worded:
13206 An instantiation of <tt>ratio</tt>.
13217 Re (a): It is not clear to us whether "epoch" is a term of art.
13220 Re (b), (c), and (d): We agree with Howard's comments,
13221 and would consider adding to (c) a <tt>static constexpr</tt> requirement.
13224 Move to Open pending proposed wording.
13229 2009-05-25 Daniel adds:
13234 In regards to (d) I suggest to say "a specialization of ratio" instead of
13235 "An instantiation of ratio". This seems to be the better matching standard
13236 core language term for this kind of entity.
13240 2009-05-25 Ganesh adds:
13246 Regarding (a), I found this paper on the ISO website using the term "epoch" consistently with the current wording:
13250 <a href="http://standards.iso.org/ittf/PubliclyAvailableStandards/C030811e_FILES/MAIN_C030811e/text/ISOIEC_18026E_TEMPORAL_CS.HTM">http://standards.iso.org/ittf/PubliclyAvailableStandards/C030811e_FILES/MAIN_C030811e/text/ISOIEC_18026E_TEMPORAL_CS.HTM</a>
13253 which is part of ISO/IEC 18026 "Information technology -- Spatial Reference Model (SRM)".
13258 2009-08-01 Howard: Moved to Reivew as the wording requested in Batavia has been provided.
13263 2009-10 Santa Cruz:
13273 <p><b>Proposed resolution:</b></p>
13277 Change 20.9.1 [time.clock.req] p1:
13280 -1- A clock is a bundle consisting of a native <tt>duration</tt>, a native <tt>time_point</tt>, and a function <tt>now()</tt> to get the
13281 current <tt>time_point</tt>. <ins>The origin of the clock's <tt>time_point</tt> is referred to as the clock's <i>epoch</i> as defined in
13282 section 6.3 of ISO/IEC 18026.</ins>
13283 A clock shall meet the requirements in Table 45.
13288 Remove the sentence from the <tt>time_point</tt> row of the table "Clock Requirements":
13291 <caption>Clock requirements</caption>
13294 <tt>C1::time_point</tt>
13297 <tt>chrono::time_point<C1></tt> or <tt>chrono::time_point<C2, C1::duration></tt>
13300 The native <tt>time_point</tt> type of the clock.
13301 <del>Different clocks may share a <tt>time_point</tt> definition if it is valid to compare their <tt>time_point</tt>s by comparing their respective <tt>duration</tt>s.</del>
13302 <tt>C1</tt> and <tt>C2</tt> shall refer to the same epoch.
13308 <ol start="4" type="a">
13311 Change the row starting with <tt>C1::period</tt> of the table "Clock Requirements":
13314 <caption>Clock requirements</caption>
13317 <tt>C1::period</tt>
13320 <ins>a specialization of</ins> <tt>ratio</tt>
13323 The tick period of the clock in seconds.
13336 <h3><a name="956"></a>956. Various threading bugs #6</h3>
13337 <p><b>Section:</b> 20.9.1 [time.clock.req] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
13338 <b>Submitter:</b> Pete Becker <b>Opened:</b> 2009-01-07 <b>Last modified:</b> 2009-10-24</p>
13339 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#time.clock.req">active issues</a> in [time.clock.req].</p>
13340 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#time.clock.req">issues</a> in [time.clock.req].</p>
13341 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
13342 <p><b>Discussion:</b></p>
13344 20.9.1 [time.clock.req] uses the word "native" in several places,
13345 but doesn't define it. What is a "native <tt>duration</tt>"?
13349 2009-05-10 Howard adds:
13354 The standard uses "native" in several places without defining it (e.g.
13355 2.14.3 [lex.ccon]). It is meant to mean "that which is defined
13356 by the facility", or something along those lines. In this case it refers
13357 to the nested <tt>time_point</tt> and <tt>duration</tt> types of the clock.
13358 Better wording is welcome.
13366 Move to Open pending proposed wording from Pete.
13370 2009-10-23 Pete provides wording:
13375 <p><b>Proposed resolution:</b></p>
13377 Remove every occurrence of "native" in 20.9.1 [time.clock.req].
13381 Add the following sentence at the end of 20.9.1 [time.clock.req]/1:
13385 A clock is a bundle consisting of a <del>native</del> <tt>duration</tt>, a <del>native</del>
13386 <tt>time_point</tt>, and a function <tt>now()</tt> to get the current <tt>time_point</tt>. A clock
13387 shall meet the requirements in Table 55.
13388 <ins>The <tt>duration</tt> and <tt>time_point</tt> types have the natural size and resolution
13389 suggested by the architecture of the execution environment.</ins>
13397 <h3><a name="957"></a>957. Various threading bugs #7</h3>
13398 <p><b>Section:</b> 20.9.5.1 [time.clock.system] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
13399 <b>Submitter:</b> Pete Becker <b>Opened:</b> 2009-01-07 <b>Last modified:</b> 2009-10-21</p>
13400 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#time.clock.system">issues</a> in [time.clock.system].</p>
13401 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
13402 <p><b>Discussion:</b></p>
13404 20.9.5.1 [time.clock.system]: <tt>to_time_t</tt> is overspecified. It
13405 requires truncation, but should allow rounding. For example, suppose a
13406 system has a clock that gives times in milliseconds, but <tt>time()</tt> rounds
13407 those times to the nearest second. Then <tt>system_clock</tt> can't use any
13408 resolution finer than one second, because if it did, truncating times
13409 between half a second and a full second would produce the wrong <tt>time_t</tt>
13414 Post Summit Anthony Williams provided proposed wording.
13423 Move to Review pending input from Howard. and other stakeholders.
13427 2009-05-23 Howard adds:
13432 I am in favor of the wording provided by Anthony.
13436 2009-10 Santa Cruz:
13446 <p><b>Proposed resolution:</b></p>
13448 In 20.9.5.1 [time.clock.system] replace paragraphs 3 and 4 with:
13452 <pre>time_t to_time_t(const time_point& t);
13455 -3- <i>Returns:</i> A <tt>time_t</tt> object that represents the same
13456 point in time as <tt>t</tt> when both values are <del>truncated</del>
13457 <ins>restricted</ins> to the coarser of the precisions of
13458 <tt>time_t</tt> and <tt>time_point</tt>. <ins> It is implementation
13459 defined whether values are rounded or truncated to the required
13463 <pre>time_point from_time_t(time_t t);
13466 -4- <i>Returns:</i> A <tt>time_point</tt> object that represents the
13467 same point in time as <tt>t</tt> when both values are <del>truncated</del>
13468 <ins>restricted</ins> to the
13469 coarser of the precisions of <tt>time_t</tt> and <tt>time_point</tt>.
13470 <ins>It is implementation defined whether values are
13471 rounded or truncated to the required precision.</ins>
13480 <h3><a name="959"></a>959. Various threading bugs #9</h3>
13481 <p><b>Section:</b> 30.5.1 [thread.condition.condvar] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
13482 <b>Submitter:</b> Pete Becker <b>Opened:</b> 2009-01-07 <b>Last modified:</b> 2009-10-26</p>
13483 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#thread.condition.condvar">active issues</a> in [thread.condition.condvar].</p>
13484 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#thread.condition.condvar">issues</a> in [thread.condition.condvar].</p>
13485 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
13486 <p><b>Discussion:</b></p>
13488 30.5.1 [thread.condition.condvar]: <tt>condition_variable::wait_for</tt>
13489 is required to compute the absolute time by adding the duration value to
13490 <tt>chrono::monotonic_clock::now()</tt>, but <tt>monotonic_clock</tt> is not required to
13500 Move to open. Associate with LWG <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#859">859</a> and any other monotonic-clock
13505 2009-08-01 Howard adds:
13510 I believe that <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#859">859</a> (currently Ready) addresses this issue, and
13511 that this issue should be marked NAD, solved by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#859">859</a> (assuming
13516 2009-10 Santa Cruz:
13521 Leave open, but expect to be fixed by N2969 revision that Detlef is writing.
13526 <p><b>Proposed resolution:</b></p>
13535 <h3><a name="960"></a>960. Various threading bugs #10</h3>
13536 <p><b>Section:</b> 30.4.1 [thread.mutex.requirements] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
13537 <b>Submitter:</b> Pete Becker <b>Opened:</b> 2009-01-07 <b>Last modified:</b> 2009-10-26</p>
13538 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#thread.mutex.requirements">active issues</a> in [thread.mutex.requirements].</p>
13539 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#thread.mutex.requirements">issues</a> in [thread.mutex.requirements].</p>
13540 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
13541 <p><b>Discussion:</b></p>
13543 30.4.1 [thread.mutex.requirements]: paragraph 4 is entitled
13544 "Error conditions", but according to 17.5.1.4 [structure.specifications], "Error
13545 conditions:" specifies "the error conditions for error codes reported by
13546 the function." It's not clear what this should mean when there is no
13560 Beman provided proposed wording.
13565 2009-10 Santa Cruz:
13570 Move to Ready. Fix the proposed wording with "functions of type Mutex"
13571 -> "functions of Mutex type"
13576 <p><b>Proposed resolution:</b></p>
13578 Change 30.4.1 [thread.mutex.requirements] Mutex requirements,
13579 paragraph 4 as indicated:
13584 -4- <del><i>Error conditions:</i></del>
13585 <ins>The error conditions for error codes, if any, reported by member
13586 functions of Mutex type shall be:</ins>
13590 <tt>not_enough_memory</tt> -- if there is not enough memory to construct
13594 <tt>resource_unavailable_try_again</tt> -- if any native handle type
13595 manipulated is not available.
13598 <tt>operation_not_permitted</tt> -- if the thread does not have the
13599 necessary permission to change the state of the mutex object.
13602 <tt>device_or_resource_busy</tt> -- if any native handle type
13603 manipulated is already locked.
13606 <tt>invalid_argument</tt> -- if any native handle type manipulated as
13607 part of mutex construction is incorrect.
13617 <h3><a name="962"></a>962. Various threading bugs #12</h3>
13618 <p><b>Section:</b> 30.4.3.2.2 [thread.lock.unique.locking] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
13619 <b>Submitter:</b> Pete Becker <b>Opened:</b> 2009-01-07 <b>Last modified:</b> 2009-10-22</p>
13620 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#thread.lock.unique.locking">active issues</a> in [thread.lock.unique.locking].</p>
13621 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#thread.lock.unique.locking">issues</a> in [thread.lock.unique.locking].</p>
13622 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
13623 <p><b>Discussion:</b></p>
13625 30.4.3.2.2 [thread.lock.unique.locking]: <tt>unique_lock::lock</tt> is
13626 required to throw an object of type <tt>std::system_error</tt> "when the
13627 postcondition cannot be achieved." The postcondition is <tt>owns == true</tt>,
13628 and this is trivial to achieve. Presumably, the requirement is intended
13629 to mean something more than that.
13641 Beman has volunteered to provide proposed wording.
13646 2009-07-21 Beman added wording to address 30.2.2 [thread.req.exception]
13647 in response to the Frankfurt notes in <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#859">859</a>.
13652 2009-09-25 Beman: minor update to wording.
13657 2009-10 Santa Cruz:
13667 <p><b>Proposed resolution:</b></p>
13669 <p><i>Change Exceptions 30.2.2 [thread.req.exception] as indicated:</i></p>
13671 <p>Some functions described in this Clause are specified to throw exceptions of
13672 type <code>system_error</code> (19.5.5). Such exceptions shall be thrown if <ins>
13673 any of the <i>Error conditions</i> are detected or</ins> a call to an operating
13674 system or other underlying API results in an error that prevents the library
13675 function from <del>satisfying its postconditions or from returning a meaningful
13676 value</del> <ins>meeting its specifications</ins>. <ins>Failure to
13677 allocate storage shall be reported as described in
13678 17.6.4.11 [res.on.exception.handling].</ins></p>
13681 <p><i>Change thread assignment 30.3.1.5 [thread.thread.member], join(),
13682 paragraph 8 as indicated:</i></p>
13684 <p><i>Throws:</i> <code>std::system_error</code> when <del>the postconditions cannot be achieved</del> <ins>an exception is required (30.2.2 [thread.req.exception])</ins>.</p>
13688 <p><i>Change thread assignment 30.3.1.5 [thread.thread.member], detach(), paragraph
13689 13 as indicated:</i></p>
13692 <p><i>Throws:</i> <code>std::system_error</code> when <del>the effects or
13693 postconditions cannot be achieved</del> <ins>an exception is required (30.2.2 [thread.req.exception])</ins>.</p>
13697 <p><i>Change Mutex requirements 30.4.1 [thread.mutex.requirements], paragraph
13698 11, as indicated:</i></p>
13701 <p><i>Throws:</i> <code>std::system_error</code> when <del>the effects or
13702 postcondition cannot be achieved</del> <ins>an exception is required (30.2.2 [thread.req.exception])</ins>.</p>
13704 <p><i>Change unique_lock locking 30.4.3.2.2 [thread.lock.unique.locking],
13705 paragraph 3, as indicated:</i></p>
13708 <p><i>Throws:</i> <code>std::system_error</code> when <del>the postcondition cannot be achieved</del> <ins>an exception is required (30.2.2 [thread.req.exception])</ins>.</p>
13710 <p><i>Change unique_lock locking 30.4.3.2.2 [thread.lock.unique.locking],
13711 paragraph 8, as indicated:</i></p>
13714 <p><i>Throws:</i> <code>std::system_error</code> when <del>the postcondition cannot be achieved</del> <ins>an exception is required (30.2.2 [thread.req.exception])</ins>.</p>
13716 <p><i>Change unique_lock locking 30.4.3.2.2 [thread.lock.unique.locking],
13717 paragraph 13, as indicated:</i></p>
13720 <p><i>Throws:</i> <code>std::system_error</code> when <del>the postcondition cannot be achieved</del> <ins>an exception is required (30.2.2 [thread.req.exception])</ins>.</p>
13722 <p><i>Change unique_lock locking 30.4.3.2.2 [thread.lock.unique.locking],
13723 paragraph 18, as indicated:</i></p>
13726 <p><i>Throws:</i> <code>std::system_error</code> when <del>the postcondition cannot be achieved</del> <ins>an exception is required (30.2.2 [thread.req.exception])</ins>.</p>
13728 <p><i>Change unique_lock locking 30.4.3.2.2 [thread.lock.unique.locking],
13729 paragraph 22, as indicated:</i></p>
13732 <p><i>Throws:</i> <code>std::system_error</code> when <del>the postcondition cannot be achieved</del> <ins>an exception is required (30.2.2 [thread.req.exception])</ins>.</p>
13734 <p><i>Change Function call_once 30.4.5.2 [thread.once.callonce], paragraph 4, as
13737 <p><i>Throws:</i> <code>std::system_error</code> when <del>the effects cannot be achieved</del> <ins>an exception is required (30.2.2 [thread.req.exception])</ins>,
13738 or any exception thrown by <code>func</code>.</p>
13740 <p><i>Change Class condition_variable 30.5.1 [thread.condition.condvar],
13741 paragraph 12, as indicated:</i></p>
13744 <p><i>Throws:</i> <code>std::system_error</code> when <del>the effects or
13745 postcondition cannot be achieved</del> <ins>an exception is required (30.2.2 [thread.req.exception])</ins>.</p>
13747 <p><i>Change Class condition_variable 30.5.1 [thread.condition.condvar],
13748 paragraph 19, as indicated:</i></p>
13751 <p><i>Throws:</i> <code>std::system_error</code> when <del>the effects or
13752 postcondition cannot be achieved</del> <ins>an exception is required (30.2.2 [thread.req.exception])</ins>.</p>
13754 <p><i>Change Class condition_variable_any 30.5.2 [thread.condition.condvarany],
13755 paragraph 10, as indicated:</i></p>
13758 <p><i>Throws:</i> <code>std::system_error</code> when <del>the effects or
13759 postcondition cannot be achieved</del> <ins>an exception is required (30.2.2 [thread.req.exception])</ins>.</p>
13761 <p><i>Change Class condition_variable_any 30.5.2 [thread.condition.condvarany],
13762 paragraph 16, as indicated:</i></p>
13765 <p><i>Throws:</i> <code>std::system_error</code> when <del>the returned value, effects, or
13766 postcondition cannot be achieved</del> <ins>an exception is required (30.2.2 [thread.req.exception])</ins>.</p>
13769 <p><i>Assuming issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#859">859</a>, Monotonic Clock is Conditionally Supported?, has been
13770 applied to the working paper, change Change 30.5.1 [thread.condition.condvar] as
13773 <pre>template <class Rep, class Period>
13774 bool wait_for(unique_lock<mutex>& lock,
13775 const chrono::duration<Rep, Period>& rel_time);</pre>
13778 <p><i>Throws:</i> <code>std::system_error</code> when <del>the effects or
13779 postcondition cannot be achieved</del> <ins>an exception is required ([thread.req.exception])</ins>.</p>
13782 <p><i>Assuming issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#859">859</a>, Monotonic Clock is Conditionally Supported?, has been
13783 applied to the working paper, change Change 30.5.1 [thread.condition.condvar] as
13786 <pre>template <class Rep, class Period, class Predicate>
13787 bool wait_for(unique_lock<mutex>& lock,
13788 const chrono::duration<Rep, Period>& rel_time,
13789 Predicate pred);</pre>
13792 <p><i>Throws:</i> <code>std::system_error</code> when <del>the effects or
13793 postcondition cannot be achieved</del> <ins>an exception is required (30.2.2 [thread.req.exception])</ins>.</p>
13796 <p><i>Assuming issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#859">859</a>, Monotonic Clock is Conditionally Supported?, has been
13797 applied to the working paper, change 30.5.2 [thread.condition.condvarany] as
13800 <pre>template <class Lock, class Rep, class Period>
13801 bool wait_for(Lock& lock, const chrono::duration<Rep, Period>& rel_time);</pre>
13804 <p><i>Throws:</i> <code>std::system_error</code> when <del>the returned value, effects or
13805 postcondition cannot be achieved</del> <ins>an exception is required (30.2.2 [thread.req.exception])</ins>.</p>
13808 <p><i>Assuming issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#859">859</a>, Monotonic Clock is Conditionally Supported?, has been
13809 applied to the working paper, change 30.5.2 [thread.condition.condvarany] as
13812 <pre>template <class Lock, class Rep, class Period, class Predicate>
13813 bool wait_for(Lock& lock, const chrono::duration<Rep, Period>& rel_time, Predicate pred);</pre>
13816 <p><i>Throws:</i> <code>std::system_error</code> when <del>the returned value, effects or
13817 postcondition cannot be achieved</del> <ins>an exception is required (30.2.2 [thread.req.exception])</ins>.</p>
13826 <h3><a name="963"></a>963. Various threading bugs #13</h3>
13827 <p><b>Section:</b> 30.3.1.5 [thread.thread.member] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
13828 <b>Submitter:</b> Pete Becker <b>Opened:</b> 2009-01-07 <b>Last modified:</b> 2009-10-26</p>
13829 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#thread.thread.member">active issues</a> in [thread.thread.member].</p>
13830 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#thread.thread.member">issues</a> in [thread.thread.member].</p>
13831 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
13832 <p><b>Discussion:</b></p>
13834 30.3.1.5 [thread.thread.member]: <tt>thread::detach</tt> is required to
13835 throw an exception if the thread is "not a detachable thread".
13836 "Detachable" is never defined.
13845 Due to a mistake on my part, 3 proposed resolutions appeared at approximately
13846 the same time. They are all three noted below in the discussion.
13850 Summit, proposed resolution:
13856 In 30.3.1.5 [thread.thread.member] change:
13859 <blockquote><pre>void detach();
13863 <p>-14- <i>Error conditions:</i></p>
13865 <li><tt>no_such_process</tt> -- <ins>if the thread is</ins> not <del>a</del> valid<del> thread</del>.</li>
13866 <li><tt>invalid_argument</tt> -- <ins>if the thread is</ins> not <del>a detachable</del> <ins>joinable</ins><del> thread</del>.</li>
13875 Post Summit, Jonathan Wakely adds:
13881 A <tt>thread</tt> is detachable if it is joinable. As we've defined joinable,
13882 we can just use that.
13885 This corresponds to the pthreads specification, where pthread_detach
13886 fails if the thread is not joinable:
13889 EINVAL: The implementation has detected that the value specified by
13890 thread does not refer to a joinable thread.
13893 Jonathan recommends this proposed wording:
13897 In 30.3.1.5 [thread.thread.member] change:
13900 <blockquote><pre>void detach();
13904 <p>-14- <i>Error conditions:</i></p>
13907 <li><tt>invalid_argument</tt> -- not a <del>detachable</del> <ins>joinable</ins> thread.</li>
13916 Post Summit, Anthony Williams adds:
13922 This is covered by the precondition that <tt>joinable()</tt> be <tt>true</tt>.
13925 Anthony recommends this proposed wording:
13930 In 30.3.1.5 [thread.thread.member] change:
13933 <blockquote><pre>void detach();
13937 <p>-14- <i>Error conditions:</i></p>
13940 <li><del><tt>invalid_argument</tt> -- not a detachable thread.</del></li>
13951 2009-10 Santa Cruz:
13956 Mark as Ready with proposed resolution from Summit.
13961 <p><b>Proposed resolution:</b></p>
13964 In 30.3.1.5 [thread.thread.member] change:
13967 <blockquote><pre>void detach();
13971 <p>-14- <i>Error conditions:</i></p>
13973 <li><tt>no_such_process</tt> -- <ins>if the thread is</ins> not <del>a</del> valid<del> thread</del>.</li>
13974 <li><tt>invalid_argument</tt> -- <ins>if the thread is</ins> not <del>a detachable</del> <ins>joinable</ins><del> thread</del>.</li>
13986 <h3><a name="964"></a>964. Various threading bugs #14</h3>
13987 <p><b>Section:</b> 30.5.2 [thread.condition.condvarany] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
13988 <b>Submitter:</b> Pete Becker <b>Opened:</b> 2009-01-07 <b>Last modified:</b> 2009-10-26</p>
13989 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#thread.condition.condvarany">active issues</a> in [thread.condition.condvarany].</p>
13990 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#thread.condition.condvarany">issues</a> in [thread.condition.condvarany].</p>
13991 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
13992 <p><b>Discussion:</b></p>
13994 The requirements for the constructor for <tt>condition_variable</tt> has several
13995 error conditions, but the requirements for the constructor for
13996 <tt>condition_variable_any</tt> has none. Is this difference intentional?
14005 Move to open, pass to Howard. If this is intentional, a note may be
14006 helpful. If the error conditions are to be copied from
14007 <tt>condition_variable</tt>, this depends on LWG <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#965">965</a>.
14011 Post Summit Howard adds:
14016 The original intention
14017 (<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2447.htm#ConditionVariablesWording">N2447</a>)
14018 was to let the OS return whatever errors it was going to return, and for
14019 those to be translated into exceptions, for both
14020 <tt>condition_variable</tt> and <tt>condition_variable_any</tt>. I have not
14021 received any complaints about specific error conditions from vendors on
14022 non-POSIX platforms, but such complaints would not surprise me if they surfaced.
14026 2009-10 Santa Cruz:
14031 Leave open. Benjamin to provide wording.
14036 <p><b>Proposed resolution:</b></p>
14043 <h3><a name="966"></a>966. Various threading bugs #16</h3>
14044 <p><b>Section:</b> 30.5.1 [thread.condition.condvar] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
14045 <b>Submitter:</b> Pete Becker <b>Opened:</b> 2009-01-07 <b>Last modified:</b> 2009-10-26</p>
14046 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#thread.condition.condvar">active issues</a> in [thread.condition.condvar].</p>
14047 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#thread.condition.condvar">issues</a> in [thread.condition.condvar].</p>
14048 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
14049 <p><b>Discussion:</b></p>
14051 30.5.1 [thread.condition.condvar]:
14052 <tt>condition_variable::wait</tt> and
14053 <tt>condition_variable::wait_until</tt> both have a postcondition that
14054 <tt>lock</tt> is locked by the calling thread, and a throws clause that
14055 requires throwing an exception if this postcondition cannot be achieved.
14056 How can the implementation detect that this <tt>lock</tt> can never be
14066 Move to open. Requires wording. Agreed this is an issue, and the
14067 specification should not require detecting deadlocks.
14071 2009-08-01 Howard provides wording.
14077 The proposed wording is inspired by the POSIX spec which says:
14083 <dd>The value specified by cond or mutex is invalid.</dd>
14085 <dd>The mutex was not owned by the current thread at the time of the call.</dd>
14090 I do not believe [EINVAL] is possible without memory corruption (which we don't
14091 specify). [EPERM] is possible if this thread doesn't own the mutex, which is
14092 listed as a precondition. "May" is used instead of "Shall" because not all
14098 2009-10 Santa Cruz:
14103 Leave open, Detlef to provide improved wording.
14107 2009-10-23 Detlef Provided wording.
14113 Detlef's wording put in Proposed resolution. Original wording here:
14117 Change 30.5.1 [thread.condition.condvar] p12, p19 and
14118 30.5.2 [thread.condition.condvarany] p10, p16:
14122 <i>Throws:</i> <ins>May throw</ins> <tt>std::system_error</tt>
14124 if a precondition is not met.
14126 <del>when the effects or postcondition
14127 cannot be achieved.</del>
14133 2009-10 Santa Cruz:
14138 Leave open, Detlef to provide improved wording.
14143 <p><b>Proposed resolution:</b></p>
14145 Replace 30.5.1 [thread.condition.condvar] p12, p19 and
14146 30.5.2 [thread.condition.condvarany] p10, p16:
14151 <i>Throws:</i> <tt>std::system_error</tt> when the effects or
14152 postcondition cannot be achieved.
14159 equivalent error condition from <tt>lock.lock()</tt> or <tt>lock.unlock()</tt>.
14164 <i>Throws:</i> It's implementation-defined whether a <tt>std::system_error</tt>
14165 with implementation-defined error condition is thrown if the
14166 precondition is not met.
14176 <h3><a name="967"></a>967. Various threading bugs #17</h3>
14177 <p><b>Section:</b> 30.3.1.2 [thread.thread.constr] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
14178 <b>Submitter:</b> Pete Becker <b>Opened:</b> 2009-01-07 <b>Last modified:</b> 2009-10-22</p>
14179 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#thread.thread.constr">active issues</a> in [thread.thread.constr].</p>
14180 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#thread.thread.constr">issues</a> in [thread.thread.constr].</p>
14181 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
14182 <p><b>Discussion:</b></p>
14184 the error handling for the constructor for <tt>condition_variable</tt>
14185 distinguishes lack of memory from lack of other resources, but the error
14186 handling for the thread constructor does not. Is this difference
14191 Beman has volunteered to provide proposed wording.
14196 2009-09-25 Beman provided proposed wording.
14201 The proposed resolution assumes <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#962">962</a> has been accepted and
14202 its proposed resolution applied to the working paper.
14206 2009-10 Santa Cruz:
14216 <p><b>Proposed resolution:</b></p>
14219 <p><span style="font-style: italic;">Change Mutex requirements 30.4.1 [thread.mutex.requirements],
14220 paragraph 4, as indicated:</span></p>
14223 <p><i>Error conditions:</i></p>
14227 <li><del> <code>not_enough_memory</code> — if there is not enough memory to construct
14228 the mutex object.</del></li>
14230 <li><code>resource_unavailable_try_again</code> — if any native handle type
14231 manipulated is not available.</li>
14233 <li><code>operation_not_permitted</code> — if the thread does not have the
14234 necessary permission to change the state of the mutex object.</li>
14236 <li><code>device_or_resource_busy</code> — if any native handle type
14237 manipulated is already locked.</li>
14239 <li><code>invalid_argument</code> — if any native handle type manipulated as
14240 part of mutex construction is incorrect.</li>
14245 <p><span style="font-style: italic;">Change Class condition_variable 30.5.1 [thread.condition.condvar],
14246 default constructor, as indicated:</span></p>
14248 <p><code>condition_variable();</code></p>
14250 <p><i>Effects:</i> Constructs an object of type <code>condition_variable</code>.</p>
14251 <p><ins><i>Throws:</i> <code>std::system_error</code> when an exception is required (30.2.2 [thread.req.exception])</ins>.</p>
14252 <p><i>Error conditions:</i></p>
14255 <li><del><code>not_enough_memory</code> — if a memory limitation prevents
14256 initialization.</del></li>
14257 <li> <code>resource_unavailable_try_again</code> — if some non-memory
14258 resource limitation prevents initialization.</li>
14259 <li> <code>device_or_resource_busy</code> — if attempting to initialize a
14260 previously-initialized but as of yet undestroyed <code>condition_variable</code>.</li>
14271 <h3><a name="968"></a>968. Various threading bugs #18</h3>
14272 <p><b>Section:</b> 30.4.1 [thread.mutex.requirements] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
14273 <b>Submitter:</b> Pete Becker <b>Opened:</b> 2009-01-07 <b>Last modified:</b> 2009-10-22</p>
14274 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#thread.mutex.requirements">active issues</a> in [thread.mutex.requirements].</p>
14275 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#thread.mutex.requirements">issues</a> in [thread.mutex.requirements].</p>
14276 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
14277 <p><b>Discussion:</b></p>
14279 30.4.1 [thread.mutex.requirements]: several functions are
14280 required to throw exceptions "if the thread does not have the necessary
14281 permission ...". "The necessary permission" is not defined.
14294 Beman has volunteered to provide proposed wording.
14299 2009-10 Santa Cruz:
14304 Moved to Ready with minor word-smithing in the example.
14309 <p><b>Proposed resolution:</b></p>
14312 <p><i>Change Exceptions 30.2.2 [thread.req.exception] as indicated:</i></p>
14314 <p>Some functions described in this Clause are
14315 specified to throw exceptions of type <code>system_error</code> (19.5.5). Such exceptions
14316 shall be thrown if any of the <i>Error conditions</i> are detected or a call to an operating system or other underlying API
14317 results in an error that prevents the library function from meeting its specifications.
14318 <i>[Note:</i> See 17.6.4.11 [res.on.exception.handling] for exceptions thrown to report
14319 storage allocation failures. <i>—end
14322 <p><ins><i>[Example:</i></ins></p>
14326 <p><ins>Consider a function in this clause that is specified to throw exceptions of type <code>
14327 system_error</code> and specifies <i>Error conditions</i> that include <code>
14328 operation_not_permitted</code> for a thread that does not have the privilege to
14329 perform the operation. Assume that, during the execution of this function, an <code>errno</code>
14330 of <code>EPERM</code> is reported by a POSIX API call used by the
14331 implementation. Since POSIX specifies an <code>errno</code> of <code>EPERM</code>
14332 when "the caller does not have the privilege to perform the operation",
14333 the implementation maps <code>EPERM</code> to an <code>error_condition</code>
14334 of <code>operation_not_permitted</code> (19.5 [syserr]) and an exception of type <code>
14335 system_error</code> is thrown. </ins></p>
14339 <p><ins><i>—end example]</i></ins></p>
14341 <p><span style="font-style: italic;">Editorial note: For the sake of exposition,
14342 the existing text above is shown with the changes proposed in issues 962 and 967. The
14343 proposed additional example is independent of whether or not the 962 and 967
14344 proposed resolutions are accepted.</span></p>
14348 <p><span style="font-style: italic;">Change Mutex requirements 30.4.1 [thread.mutex.requirements],
14349 paragraph 4, as indicated:</span></p>
14353 <p>— <code>operation_not_permitted</code> — if the thread does not have the
14354 <del>necessary permission to change the state of the mutex object</del> <ins>privilege to perform the operation</ins>.</p>
14358 <p><span style="font-style: italic;">Change Mutex requirements 30.4.1 [thread.mutex.requirements],
14359 paragraph 12, as indicated:</span></p>
14363 <p>— <code>operation_not_permitted</code> — if the thread does not have the
14364 <del>necessary permission to change the state of the mutex</del> <ins>privilege to perform the operation</ins>.</p>
14374 <h3><a name="974"></a>974. <tt>duration<double></tt> should not implicitly convert to <tt>duration<int></tt></h3>
14375 <p><b>Section:</b> 20.9.3.1 [time.duration.cons] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
14376 <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-01-21 <b>Last modified:</b> 2009-10-26</p>
14377 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
14378 <p><b>Discussion:</b></p>
14380 The following code should not compile because it involves implicit truncation
14381 errors (against the design philosophy of the <tt>duration</tt> library).
14384 <blockquote><pre>duration<double> d(3.5);
14385 duration<int> i = d; <font color="#c80000">// implicit truncation, should not compile</font>
14386 </pre></blockquote>
14389 This intent was codified in the example implementation which drove this proposal
14390 but I failed to accurately translate the code into the specification in this
14400 We agree with the proposed resolution.
14403 Move to Tentatively Ready.
14413 Moved from Tentatively Ready to Open only because the wording needs to be
14414 improved for enable_if type constraining, possibly following Robert's
14419 2009-08-01 Howard adds:
14424 Addressed by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1177">1177</a>.
14428 2009-10 Santa Cruz:
14433 Not completely addressed by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1177">1177</a>. Move to Ready.
14438 <p><b>Proposed resolution:</b></p>
14440 Change 20.9.3.1 [time.duration.cons], p4:
14444 <pre>template <class Rep2, class Period2>
14445 duration(const duration<Rep2, Period2>& d);
14448 -4- <i>Requires:</i> <tt>treat_as_floating_point<rep>::value</tt>
14449 shall be <tt>true</tt> or <ins>both</ins> <tt>ratio_divide<Period2,
14450 period>::type::den</tt> shall be 1
14451 <ins>and <tt>treat_as_floating_point<Rep2>::value</tt>
14452 shall be <tt>false</tt></ins>.
14453 Diagnostic required.
14454 [<i>Note:</i> This requirement prevents implicit truncation error when
14455 converting between integral-based <tt>duration</tt> types. Such a
14456 construction could easily lead to confusion about the value of the
14457 <tt>duration</tt>. -- <i>end note</i>]
14466 <h3><a name="978"></a>978. Hashing smart pointers</h3>
14467 <p><b>Section:</b> 20.7.16 [unord.hash] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
14468 <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-02-02 <b>Last modified:</b> 2009-10-27</p>
14469 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#unord.hash">active issues</a> in [unord.hash].</p>
14470 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#unord.hash">issues</a> in [unord.hash].</p>
14471 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
14472 <p><b>Discussion:</b></p>
14473 <p><b>Addresses UK 208</b></p>
14475 I don't see an open issue on supporting <tt>std::hash</tt> for smart pointers
14476 (<tt>unique_ptr</tt> and <tt>shared_ptr</tt> at least).
14479 It seems reasonable to at least expect support for the smart
14480 pointers, especially as they support comparison for use in ordered
14481 associative containers.
14490 Howard points out that the client can always supply a custom hash function.
14493 Alisdair replies that the smart pointer classes are highly likely
14494 to be frequently used as hash keys.
14497 Bill would prefer to be conservative.
14500 Alisdair mentions that this issue may also be viewed as a subissue or
14501 duplicate of issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1025">1025</a>.
14504 Move to Open, and recommend the issue be deferred until after the next
14505 Committee Draft is issued.
14510 2009-05-31 Peter adds:
14516 Howard points out that the client can always supply a custom hash function.
14519 Not entirely true. The client cannot supply the function that hashes the
14520 address of the control block (the equivalent of the old <tt>operator<</tt>, now
14521 proudly carrying the awkward name of '<tt>owner_before</tt>'). Only the
14522 implementation can do that, not necessarily via specializing <tt>hash<></tt>, of
14526 This hash function makes sense in certain situations for <tt>shared_ptr</tt>
14527 (when one needs to switch from <tt>set/map</tt> using ownership ordering to
14528 <tt>unordered_set/map</tt>) and is the only hash function that makes sense for
14534 2009-07-28 Alisdair provides wording.
14539 2009-10 Santa Cruz:
14549 <p><b>Proposed resolution:</b></p>
14551 Add the following declarations to the synopsis of <tt><memory></tt>
14555 <blockquote><pre>// 20.8.10.X hash support
14556 template <class T> struct hash;
14557 template <class T, class D> struct hash<unique_ptr<T,D>>;
14558 template <class T> struct hash<shared_ptr<T>>;
14559 </pre></blockquote>
14562 Add a new subclause 20.8.10.X hash support
14567 20.8.10.X hash support [util.smartptr.hash]
14570 <pre>template <class T, class D> struct hash<unique_ptr<T,D>>;
14574 A partial specialization of the class template <tt>hash</tt> (20.7.16 [unord.hash]) shall be provided for instances of the
14575 <tt>unique_ptr</tt> template suitable for use as a key in unordered
14576 associative containers (23.5 [unord]) if and only if there is a
14577 <tt>hash</tt> specialization available for the type <tt>D::pointer</tt>.
14578 For an object <tt>p</tt> of type <tt>unqiue_ptr<T,D></tt> the
14579 <tt>hash</tt> shall evaluate to the same value as <tt>hash<typename
14580 D::pointer>{}(p.get())</tt>.
14583 <pre>template <class T> struct hash<shared_ptr<T>>;
14587 A partial specialization of the class template <tt>hash</tt> (20.7.16 [unord.hash])
14588 shall be provided for instances of the <tt>shared_ptr</tt> template
14589 suitable for use as a key in unordered associative containers
14590 (23.5 [unord]). For an object <tt>p</tt> of type <tt>shared_ptr<T></tt>
14591 the <tt>hash</tt> shall evaluate
14592 to the same value as <tt>hash<T*>{}(p.get())</tt>.
14601 <h3><a name="983"></a>983. <tt>unique_ptr</tt> reference deleters should not be moved from</h3>
14602 <p><b>Section:</b> 20.8.14.2 [unique.ptr.single] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
14603 <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-02-10 <b>Last modified:</b> 2009-10-21</p>
14604 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#unique.ptr.single">active issues</a> in [unique.ptr.single].</p>
14605 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#unique.ptr.single">issues</a> in [unique.ptr.single].</p>
14606 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
14607 <p><b>Discussion:</b></p>
14609 Dave brought to my attention that when a <tt>unique_ptr</tt> has a non-const reference
14610 type deleter, move constructing from it, even when the <tt>unique_ptr</tt> containing
14611 the reference is an rvalue, could have surprising results:
14614 <blockquote><pre>D d(some-state);
14615 unique_ptr<A, D&> p(new A, d);
14616 unique_ptr<A, D> p2 = std::move(p);
14617 <font color="#c80000">// has d's state changed here?</font>
14618 </pre></blockquote>
14621 I agree with him. It is the <tt>unique_ptr</tt> that is the rvalue, not the
14622 deleter. When the deleter is a reference type, the <tt>unique_ptr</tt> should
14623 respect the "lvalueness" of the deleter.
14635 Seems correct, but complicated enough that we recommend moving to Review.
14639 2009-10 Santa Cruz:
14649 <p><b>Proposed resolution:</b></p>
14651 Change 20.8.14.2.1 [unique.ptr.single.ctor], p20-21
14655 <pre>template <class U, class E> unique_ptr(unique_ptr<U, E>&& u);
14661 -20- <i>Requires:</i> If <tt><del>D</del> <ins>E</ins></tt> is not a reference type,
14662 construction of the deleter <tt>D</tt> from an rvalue of type <tt>E</tt>
14663 shall be well formed and shall not throw an exception.
14665 Otherwise <tt>E</tt> is a reference type and construction of the deleter
14666 <tt>D</tt> from an lvalue of type <tt>E</tt> shall be well formed and
14667 shall not throw an exception.
14670 a reference type, then <tt>E</tt> shall be the same type as <tt>D</tt>
14671 (diagnostic required). <tt>unique_ptr<U, E>::pointer</tt> shall be
14672 implicitly convertible to <tt>pointer</tt>. [<tt>Note:</tt> These
14673 requirements imply that <tt>T</tt> and <tt>U</tt> are complete types.
14674 <i>-- end note</i>]
14678 -21- <i>Effects:</i> Constructs a <tt>unique_ptr</tt> which owns the
14679 pointer which <tt>u</tt> owns (if any). If the deleter
14680 <ins><tt>E</tt></ins> is not a reference type, <del>it</del> <ins>this
14681 deleter</ins> is move constructed from <tt>u</tt>'s deleter, otherwise
14682 <del>the reference</del> <ins>this deleter</ins> is copy constructed
14683 from <tt>u</tt>.'s deleter. After the construction, <tt>u</tt> no longer
14684 owns a pointer. [<i>Note:</i> The deleter constructor can be implemented
14685 with <tt>std::forward<<del>D</del><ins>E</ins>></tt>. <i>-- end
14693 Change 20.8.14.2.3 [unique.ptr.single.asgn], p1-3
14697 <pre>unique_ptr& operator=(unique_ptr&& u);
14702 -1- <i>Requires:</i> <ins>If the deleter <tt>D</tt> is not a reference type,</ins>
14703 <del>A</del><ins>a</ins>ssignment of the deleter <tt>D</tt> from an rvalue <tt>D</tt> shall not throw an exception.
14705 Otherwise the deleter <tt>D</tt> is a reference type,
14706 and assignment of the deleter <tt>D</tt> from an lvalue <tt>D</tt> shall not throw an exception.</ins>
14710 -2- <i>Effects:</i> reset(u.release()) followed by
14711 a<ins>n</ins> <del>move</del> assignment from <del><tt>u</tt>'s deleter to this deleter</del>
14712 <ins><tt>std::forward<D>(u.get_deleter())</tt></ins>.
14716 -3- <i>Postconditions:</i> This <tt>unique_ptr</tt> now owns the pointer
14717 which <tt>u</tt> owned, and <tt>u</tt> no longer owns it. <del>[<i>Note:</i> If
14718 <tt>D</tt> is a reference type, then the referenced lvalue deleters are
14719 move assigned. <i>-- end note</i>]</del>
14725 Change 20.8.14.2.3 [unique.ptr.single.asgn], p6-7
14729 <pre>template <class U, class E> unique_ptr& operator=(unique_ptr<U, E>&& u);
14734 <i>Requires:</i> <ins>If the deleter <tt>E</tt> is not a reference type,</ins>
14735 <del>A</del><ins>a</ins>ssignment of the deleter <tt>D</tt> from an rvalue
14736 <tt><del>D</del><ins>E</ins></tt> shall not throw an exception.
14738 Otherwise the deleter <tt>E</tt> is a reference type,
14739 and assignment of the deleter <tt>D</tt> from an lvalue <tt>E</tt> shall not throw an exception.</ins>
14740 <tt>unique_ptr<U, E>::pointer</tt> shall be implicitly convertible to <tt>pointer</tt>.
14741 [<i>Note:</i> These requirements imply that <tt>T</tt> and <tt>U></tt>
14742 are complete types. <i>-- end note</i>]
14746 <i>Effects:</i> <tt>reset(u.release())</tt> followed by
14747 a<ins>n</ins> <del>move</del> assignment from <del><tt>u</tt>'s deleter to this deleter</del>
14748 <ins><tt>std::forward<E>(u.get_deleter())</tt></ins>.
14750 <tt>D</tt> or <tt>E</tt> is a reference type, then the referenced lvalue
14751 deleter participates in the move assignment.</del>
14763 <h3><a name="985"></a>985. Allowing throwing move</h3>
14764 <p><b>Section:</b> 23.2.1 [container.requirements.general] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
14765 <b>Submitter:</b> Rani Sharoni <b>Opened:</b> 2009-02-12 <b>Last modified:</b> 2009-10-20</p>
14766 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#container.requirements.general">active issues</a> in [container.requirements.general].</p>
14767 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#container.requirements.general">issues</a> in [container.requirements.general].</p>
14768 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
14769 <p><b>Discussion:</b></p>
14771 <b>Introduction</b>
14774 <p>This proposal is meant to resolve potential regression of the
14775 <a href="" ref="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2800.pdf">N2800</a>
14777 next section, and to relax the requirements for containers of types with
14778 throwing move constructors.</p>
14780 <p>The basic problem is that some containers operations, like <tt>push_back</tt>,
14781 have a strong exception safety
14782 guarantee (i.e. no side effects upon exception) that are not achievable when
14783 throwing move constructors are used since there is no way to guarantee revert
14784 after partial move. For such operations the implementation can at most provide
14785 the basic guarantee (i.e. valid but unpredictable) as it does with multi
14786 copying operations (e.g. range insert).</p>
14788 <p>For example, <tt>vector<T>::push_back()</tt> (where <tt>T</tt> has a move
14789 constructor) might resize the <tt>vector</tt> and move the objects to the new underlying
14790 buffer. If move constructor throws it might
14791 not be possible to recover the throwing object or to move the old objects back to
14792 the original buffer.</p>
14794 <p>The current draft is explicit by disallowing throwing move
14795 for some operations (e.g. <tt>vector<>::reserve</tt>) and not clear about other
14796 operations mentioned in 23.2.1 [container.requirements.general]/10
14797 (e.g. single element <tt>insert</tt>): it guarantees strong exception
14798 safety without explicitly disallowing a throwing move constructor.
14805 <p>This section only refers to cases in which the contained object
14806 is by itself a standard container.</p>
14808 <p>Move constructors of standard containers are allowed to throw and therefore
14809 existing operations are broken, compared with C++03, due to move optimization.
14810 (In fact existing implementations like Dinkumware are actually throwing).</p>
14812 <p>For example, <tt>vector< list<int> >::reserve</tt> yields
14813 undefined behavior since <tt>list<int></tt>'s move constructor is allowed to throw.
14814 On the other hand, the same operation has strong exception safety guarantee in
14817 <p>There are few options to solve this regression:</p>
14821 Disallow throwing move and throwing default constructor
14825 Disallow throwing move but disallowing usage after move
14833 Disallow throwing move and making it optional
14838 <p>Option 1 is suggested by proposal
14839 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2815.html">N2815</a>
14840 but it might not be applicable for existing implementations for which
14841 containers default constructors are throwing.</p>
14843 <p>Option 2 limits the usage significantly and it's error prone
14844 by allowing zombie objects that are nothing but destructible (e.g. no <tt>clear()</tt>
14845 is allowed after move). It also potentially complicates the implementation by
14846 introducing special state.</p>
14848 <p>Option 3 is possible, for example, using default
14849 construction and <tt>swap</tt> instead of move for standard containers case. The
14850 implementation is also free to provide special hidden operation for non
14851 throwing move without forcing the user the cope with the limitation of option-2
14852 when using the public move.</p>
14854 <p>Option 4 impact the efficiency in all use cases due to rare throwing move.</p>
14856 <p>The proposed wording will imply option 1 or 3 though option 2 is also
14857 achievable using more wording. I personally oppose to option 2 that has impact
14861 <b>Relaxation for user types</b>
14864 <p>Disallowing throwing move constructors in general seems very restrictive
14865 since, for example, common implementation of move will be default construction
14866 + <tt>swap</tt> so move will throw if the
14867 default constructor will throw. This is currently the case with the Dinkumware
14868 implementation of node based containers (e.g. <tt>std::list</tt>)
14869 though this section doesn't refer to standard types.</p>
14871 <p>For throwing move constructors it seem that the implementation should have
14872 no problems to provide the basic guarantee instead of the strong one. It's
14873 better to allow throwing move constructors with basic guarantee than to
14874 disallow it silently (compile and run), via undefined behavior.</p>
14876 <p>There might still be cases in which the relaxation will break existing generic
14877 code that assumes the strong guarantee but it's broken either way given a
14878 throwing move constructor since this is not a preserving optimization. </p>
14886 Bjarne comments (referring to his draft paper):
14887 "I believe that my suggestion simply solves that.
14888 Thus, we don't need a throwing move."
14891 Move to Open and recommend it be deferred until after the next
14892 Committee Draft is issued.
14897 2009-10 Santa Cruz:
14902 Should wait to get direction from Dave/Rani
14903 (<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2983.html">N2983</a>).
14908 <p><b>Proposed resolution:</b></p>
14911 23.2.1 [container.requirements.general] paragraph 10 add footnote:
14916 -10- Unless otherwise specified (see 23.1.4.1, 23.1.5.1, 23.2.2.3, and
14917 23.2.6.4) all container types defined in this Clause meet the following
14918 additional requirements:
14925 <ins>[<i>Note</i>: for compatibility with C++
14926 2003, when "no effect" is required, standard containers should not use the
14927 value_type's throwing move constructor when the contained object is by itself a
14928 standard container. -- <i>end note</i>]</ins>
14933 <p>23.2.5.1 [unord.req.except] change paragraph 2 to say: </p>
14937 -2- For unordered associative containers, if an exception is
14938 thrown by any operation other than the container's hash function from within an
14939 <tt>insert()</tt> function inserting a single element, the <tt>insert()</tt>
14940 function has no effect<ins> unless the exception is thrown by the contained
14941 object move constructor</ins>.
14945 -4- For unordered associative containers, if an exception is
14946 thrown from within a <tt>rehash()</tt> function other than by the container's hash
14947 function or comparison function, the <tt>rehash()</tt> function has no effect
14948 <ins>unless the exception is thrown by the contained
14949 object move constructor</ins>.</p>
14954 23.3.2.3 [deque.modifiers] change paragraph 2 to say:
14958 -2- <i>Remarks:</i> If an exception is thrown other than by
14959 the copy constructor<ins>, move constructor</ins>
14960 or assignment operator of <tt>T</tt>
14961 there are no effects.
14962 <ins>If an exception is thrown by <tt>push_back()</tt> or <tt>emplace_back()</tt>
14963 function, that function has no effects unless the exception is thrown by
14964 the move constructor of <tt>T</tt>.</ins>
14968 23.3.2.3 [deque.modifiers] change paragraph 6 to say:
14972 -6- <i>Throws:</i> Nothing unless an exception is thrown by the copy
14973 constructor<ins>, move constructor</ins> or assignment operator of <tt>T</tt>.
14977 23.3.6.2 [vector.capacity] remove paragraph 2
14981 <del>-2- <i>Requires:</i> If <tt>value_type</tt> has a move constructor,
14982 that constructor shall not throw any exceptions.</del>
14986 23.3.6.2 [vector.capacity] paragraph 3 change to say:
14990 -3- <i>Effects:</i> A directive that informs a <tt>vector</tt>
14991 of a planned change in size, so
14992 that it can manage the storage allocation accordingly. After <tt>reserve()</tt>,
14993 <tt>capacity()</tt> is greater or equal to the argument of <tt>reserve</tt>
14994 if reallocation happens; and equal
14995 to the previous value of <tt>capacity()</tt>
14996 otherwise. Reallocation happens at this point if and only if the current
14997 capacity is less than the argument of <tt>reserve()</tt>.
14998 If an exception is thrown, there are no effects<ins>
14999 unless the exception is thrown by the contained object move constructor</ins>.
15003 23.3.6.2 [vector.capacity] paragraph 12 change to say:
15007 -12- <i>Requires:</i> <del>If <tt>value_type</tt> has a move constructor,
15008 that constructor shall not throw any exceptions.</del>
15009 <ins>If an exception is thrown, there are no effects unless the exception is thrown by
15010 the contained object move constructor.</ins>
15014 23.3.6.4 [vector.modifiers] change paragraph 1 to say:
15018 -1- <del><i>Requires:</i> If <tt>value_type</tt> has a move constructor,
15019 that constructor shall not throw any exceptions.</del>
15020 <ins><i>Remarks:</i> If an exception is thrown by <tt>push_back()</tt>
15021 or <tt>emplace_back()</tt> function, that function has no effect unless the
15022 exception is thrown by the move constructor of <tt>T</tt>.</ins>
15026 23.3.6.4 [vector.modifiers] change paragraph 2 to say:
15030 -2- <i>Remarks:</i> Causes reallocation if the new size is greater than
15031 the old capacity. If no reallocation happens, all the iterators and
15032 references before the insertion point remain valid. If an exception is
15033 thrown other than by the copy constructor<ins>, move constructor</ins>
15034 or assignment operator of <tt>T</tt> or by any <tt>InputIterator</tt>
15035 operation there are no effects.
15039 23.3.6.4 [vector.modifiers] change paragraph 6 to say:
15043 -6- <i>Throws:</i> Nothing unless an exception is thrown by the copy
15044 constructor<ins>, move constructor</ins> or assignment operator of <tt>T</tt>.
15053 <h3><a name="987"></a>987. <tt>reference_wrapper</tt> and function types</h3>
15054 <p><b>Section:</b> 20.7.5 [refwrap] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Tentatively Ready</a>
15055 <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-02-18 <b>Last modified:</b> 2009-10-26</p>
15056 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#refwrap">issues</a> in [refwrap].</p>
15057 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Tentatively%20Ready">Tentatively Ready</a> status.</p>
15058 <p><b>Discussion:</b></p>
15060 The synopsis in 20.7.5 [refwrap] says:
15063 <blockquote><pre>template <<b>ObjectType</b> T> class reference_wrapper
15065 </pre></blockquote>
15068 And then paragraph 3 says:
15073 The template instantiation <tt>reference_wrapper<T></tt> shall be
15074 derived from <tt>std::unary_function<T1, R></tt> only if the type
15075 <tt>T</tt> is any of the following:
15080 a <b>function type</b> or a pointer to function type taking one argument of
15081 type <tt>T1</tt> and returning <tt>R</tt>
15087 But function types are not <tt>ObjectType</tt>s.
15091 Paragraph 4 contains the same contradiction.
15101 Jens: restricted reference to ObjectType
15109 Post Summit, Peter adds:
15115 In <a href="https://svn.boost.org/trac/boost/ticket/1846">https://svn.boost.org/trac/boost/ticket/1846</a>
15116 however Eric Niebler makes the very reasonable point that <tt>reference_wrapper<F></tt>,
15117 where <tt>F</tt> is a function type, represents a reference to a function,
15118 a legitimate entity. So <tt>boost::ref</tt> was changed to allow it.
15121 <a href="https://svn.boost.org/trac/boost/browser/trunk/libs/bind/test/ref_fn_test.cpp">https://svn.boost.org/trac/boost/browser/trunk/libs/bind/test/ref_fn_test.cpp</a>
15124 Therefore, I believe an alternative proposed resolution for issue 987 could simply
15125 allow <tt>reference_wrapper</tt> to be used with function types.
15130 Post Summit, Howard adds:
15136 I agree with Peter (and Eric). I got this one wrong on my first try. Here
15137 is code that demonstrates how easy (and useful) it is to instantiate
15138 <tt>reference_wrapper</tt> with a function type:
15141 <blockquote><pre>#include <functional>
15143 template <class F>
15152 </pre></blockquote>
15155 Output (link time error shows type of <tt>reference_wrapper</tt> instantiated
15156 with function type):
15159 <blockquote><pre>Undefined symbols:
15160 "void test<std::reference_wrapper<void ()()> >(std::reference_wrapper<void ()()>)",...
15161 </pre></blockquote>
15164 I've taken the liberty of changing the proposed wording to allow function types
15165 and set to Open. I'll also freely admit that I'm not positive <tt>ReferentType</tt>
15166 is the correct concept.
15179 Howard observed that <tt>FunctionType</tt>,
15180 a concept not (yet?) in the Working Paper,
15181 is likely the correct constraint to be applied.
15182 However, the proposed resolution provides an adequate approximation.
15190 2009-05-23 Alisdair adds:
15196 By constraining to <tt>PointeeType</tt> we rule out the ability for <tt>T</tt> to be a
15197 reference, and call in reference-collapsing. I'm not sure if this is
15198 correct and intended, but would like to be sure the case was considered.
15201 Is dis-allowing reference types and the
15202 implied reference collapsing the intended result?
15212 Moved from Review to Open only because the wording needs to be
15213 tweaked for concepts removal.
15217 2009-10-14 Daniel provided de-conceptified wording.
15222 2009-10 post-Santa Cruz:
15227 Move to Tentatively Ready.
15232 <p><b>Proposed resolution:</b></p>
15234 Change 20.7.5 [refwrap]/1 as indicated:
15238 <tt>reference_wrapper<T></tt> is a <tt>CopyConstructible</tt> and
15239 <tt><ins>Copy</ins>Assignable</tt> wrapper around a
15240 reference to an object <ins>or function</ins> of type <tt>T</tt>.
15247 <p><b>Rationale:</b></p>
15249 a) The occurrence of <tt>T&</tt> in the function signature auto-implies
15250 <tt>std::ReferentType</tt>,
15251 this is due to [temp.req.impl]/4 bullet 4
15254 b) The occurrence of the constrained template <tt>reference_wrapper<T></tt> in
15256 signatures lets kick in [temp.req.impl]/4 bullet 1 and adds *all* requirements of
15257 this template. But we need to add at least *one* requirement (and it
15259 but natural decision to require <tt>std::PointeeType</tt> here) to *activate*
15260 this. If we hadn't done
15261 this, we were in unconstrained mode!
15269 <h3><a name="996"></a>996. Move operation not well specified</h3>
15270 <p><b>Section:</b> 17 [library] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
15271 <b>Submitter:</b> David Abrahams <b>Opened:</b> 2009-03-06 <b>Last modified:</b> 2009-05-23</p>
15272 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#library">active issues</a> in [library].</p>
15273 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#library">issues</a> in [library].</p>
15274 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
15275 <p><b>Discussion:</b></p>
15277 There are lots of places in the standard where we talk about "the move
15278 constructor" but where we mean "the move operation," i.e. <tt>T( move( x ) )</tt>.
15281 We also don't account for whether that operation modifies <tt>x</tt> or not, and
15290 Move to Open, pending proposed wording from Dave for further
15295 <p><b>Proposed resolution:</b></p>
15304 <h3><a name="999"></a>999. Taking the address of a function</h3>
15305 <p><b>Section:</b> 20.8.13 [specialized.algorithms] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Tentatively Ready</a>
15306 <b>Submitter:</b> Peter Dimov <b>Opened:</b> 2009-03-09 <b>Last modified:</b> 2009-10-26</p>
15307 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#specialized.algorithms">issues</a> in [specialized.algorithms].</p>
15308 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Tentatively%20Ready">Tentatively Ready</a> status.</p>
15309 <p><b>Discussion:</b></p>
15311 The same fix (reference <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#987">987</a>) may be applied to <tt>addressof</tt>, which is also constrained to
15312 <tt>ObjectType</tt>. (That was why <tt>boost::ref</tt> didn't work with functions - it
15313 tried to apply <tt>boost::addressof</tt> and the <tt>reinterpret_cast<char&></tt>
15314 implementation of <tt>addressof</tt> failed.)
15328 Move to Tentatively Ready.
15338 Moved from Tentatively Ready to Open only because the wording needs to be
15339 tweaked for concepts removal.
15343 2009-10-10 Daniel updates wording to concept-free.
15348 2009-10 post-Santa Cruz:
15353 Move to Tentatively Ready.
15358 <p><b>Proposed resolution:</b></p>
15360 The resolution assumes that <tt>addressof</tt> is reintroduced as described in
15361 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2946.pdf">n2946</a>
15366 In 20.8.13 [specialized.algorithms] change as described:
15369 <blockquote><pre>template <class T> T* addressof(T& r);
15372 <i>Returns:</i> The actual address of the object <ins>or function</ins>
15373 referenced by <tt>r</tt>, even in the
15374 presence of an overloaded <tt>operator&</tt>.
15381 <p><b>Rationale:</b></p>
15383 a) The occurrence of <tt>T&</tt> in the function signature auto-implies
15384 <tt>std::ReferentType</tt>,
15385 this is due to [temp.req.impl]/4 bullet 4
15393 <h3><a name="1008"></a>1008. <tt>nested_exception</tt> wording unclear</h3>
15394 <p><b>Section:</b> 18.8.6 [except.nested] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
15395 <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-11 <b>Last modified:</b> 2009-10-22</p>
15396 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#except.nested">active issues</a> in [except.nested].</p>
15397 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#except.nested">issues</a> in [except.nested].</p>
15398 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
15399 <p><b>Discussion:</b></p>
15401 <p><b>Addresses JP 31</b></p>
15404 It is difficult to understand in which case <tt>nested_exception</tt> is applied.
15413 Alisdair will add an example in an update to
15414 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2619.pdf">N2619</a>.
15418 2009-10 Santa Cruz:
15423 It doesn't appear that N2619 really addresses this. Alisdair to propose wording.
15428 <p><b>Proposed resolution:</b></p>
15435 <h3><a name="1011"></a>1011. <tt>next/prev</tt> wrong iterator type</h3>
15436 <p><b>Section:</b> 24.4.4 [iterator.operations] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
15437 <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-11 <b>Last modified:</b> 2009-10-22</p>
15438 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#iterator.operations">active issues</a> in [iterator.operations].</p>
15439 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#iterator.operations">issues</a> in [iterator.operations].</p>
15440 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
15441 <p><b>Discussion:</b></p>
15443 <p><b>Addresses UK 271</b></p>
15446 <tt>next/prev</tt> return an incremented iterator without changing the value of
15447 the original iterator. However, even this may invalidate an
15448 <tt>InputIterator</tt>. A <tt>ForwardIterator</tt> is required to guarantee the
15449 'multipass' property.
15457 We agree with the proposed resolution.
15458 Move to Tentatively Ready.
15467 Moved from Tentatively Ready to Open only because the wording needs to be
15468 tweaked for concepts removal.
15472 2009-10-14 Daniel provided de-conceptified wording.
15477 2009-10 Santa Cruz:
15487 <p><b>Proposed resolution:</b></p>
15493 Change header <tt><iterator></tt> synopsis 24.3 [iterator.synopsis] as indicated:
15496 <blockquote><pre>// 24.4.4, iterator operations:
15498 template <class <del>Input</del><ins>Forward</ins>Iterator>
15499 <del>Input</del><ins>Forward</ins>Iterator
15500 next(<del>Input</del><ins>Forward</ins>Iterator x, typename std::iterator_traits<<del>Input</del><ins>Forward</ins>Iterator>::difference_type n = 1);
15501 </pre></blockquote>
15506 Change 24.4.4 [iterator.operations] before p.6 as indicated:
15509 <blockquote><pre>template <class <del>Input</del><ins>Forward</ins>Iterator>
15510 <del>Input</del><ins>Forward</ins>Iterator
15511 next(<del>Input</del><ins>Forward</ins>Iterator x, typename std::iterator_traits<<del>Input</del><ins>Forward</ins>Iterator>::difference_type n = 1);
15512 </pre></blockquote>
15522 <h3><a name="1030"></a>1030. Response to JP 44</h3>
15523 <p><b>Section:</b> 20.8.15.5 [util.smartptr.shared.atomic] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
15524 <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-11 <b>Last modified:</b> 2009-10-23</p>
15525 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
15526 <p><b>Discussion:</b></p>
15528 <p><b>Addresses JP 44</b></p>
15531 The 1st parameter <tt>p</tt> and 2nd parameter <tt>v</tt> is now
15532 <tt>shared_ptr<T>*</tt>.
15535 It should be <tt>shared_ptr<T>&</tt>, or if these are
15536 <tt>shared_ptr<T>*</tt> then add the "<tt>p</tt> shall not be a
15537 null pointer" at the requires.
15546 Agree. All of the functions need a requirement that <tt>p</tt> (or
15547 <tt>v</tt>) is a pointer to a valid object.
15551 2009-07 post-Frankfurt:
15557 Lawrence explained that these signatures match the regular atomics. The
15558 regular atomics must not use references because these signatures are
15559 shared with C. The decision to pass shared_ptrs by pointer rather than
15560 by reference was deliberate and was motivated by the principle of least
15564 Lawrence to write wording that requires that the pointers not be null.
15569 2009-09-20 Lawrence provided wording:
15575 The parameter types for atomic shared pointer access
15576 were deliberately chosen to be pointers
15577 to match the corresponding parameters of the atomics chapter.
15578 Those in turn were deliberately chosen
15579 to match C functions,
15580 which do not have reference parameters.
15583 We adopt the second suggestion,
15584 to require that such pointers not be null.
15589 2009-10 Santa Cruz:
15599 <p><b>Proposed resolution:</b></p>
15601 In section "<code>shared_ptr</code> atomic access"
15602 20.8.15.5 [util.smartptr.shared.atomic], add to each function the
15606 <i>Requires:</i> <code>p</code> shall not be null.
15614 <h3><a name="1033"></a>1033. <tt>thread::join()</tt> effects?</h3>
15615 <p><b>Section:</b> 30.3.1.5 [thread.thread.member] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
15616 <b>Submitter:</b> Alberto Ganesh Barbati <b>Opened:</b> 2009-03-12 <b>Last modified:</b> 2009-05-23</p>
15617 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#thread.thread.member">active issues</a> in [thread.thread.member].</p>
15618 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#thread.thread.member">issues</a> in [thread.thread.member].</p>
15619 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
15620 <p><b>Discussion:</b></p>
15623 While looking at <tt>thread::join()</tt> I think I spotted a couple of
15624 possible defects in the specifications. I could not find a previous
15625 issue or NB comment about that, but I might have missed it.
15629 The postconditions clause for <tt>thread::join()</tt> is:
15633 <i>Postconditions:</i> If <tt>join()</tt> throws an exception, the value
15634 returned by <tt>get_id()</tt> is unchanged. Otherwise, <tt>get_id() == id()</tt>.
15638 and the throws clause is:
15642 <i>Throws:</i> <tt>std::system_error</tt> when the postconditions cannot be achieved.
15646 Now... how could the postconditions <em>not</em> be achieved?
15647 It's just a matter of resetting the value of <tt>get_id()</tt> or leave it
15648 unchanged! I bet we can always do that. Moreover, it's a chicken-and-egg
15649 problem: in order to decide whether to throw or not I depend on the
15650 postconditions, but the postconditions are different in the two cases.
15654 I believe the throws clause should be:
15658 <i>Throws:</i> <tt>std::system_error</tt> when the effects or postconditions
15659 cannot be achieved.
15663 as it is in <tt>detach()</tt>, or, even better, as the postcondition is
15664 trivially satisfiable and to remove the circular dependency:
15669 <i>Throws:</i> <tt>std::system_error</tt> if the effects cannot be achieved.
15673 Problem is that... ehm... <tt>join()</tt> has no "Effects" clause. Is that intentional?
15677 See the thread starting at c++std-lib-23204 for more discussion.
15687 Pete believes there may be some more general language (in frontmatter)
15688 that can address this and related issues such as <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#962">962</a>.
15696 <p><b>Proposed resolution:</b></p>
15703 <h3><a name="1034"></a>1034. Response to UK 222</h3>
15704 <p><b>Section:</b> 23.2.1 [container.requirements.general] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
15705 <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-12 <b>Last modified:</b> 2009-10-20</p>
15706 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#container.requirements.general">active issues</a> in [container.requirements.general].</p>
15707 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#container.requirements.general">issues</a> in [container.requirements.general].</p>
15708 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
15709 <p><b>Discussion:</b></p>
15711 <p><b>Addresses UK 222</b></p>
15714 It is not clear what purpose the Requirement tables serve in the
15715 Containers clause. Are they the definition of a library Container? Or
15716 simply a conventient shorthand to factor common semantics into a single
15717 place, simplifying the description of each subsequent container? This
15718 becomes an issue for 'containers' like <tt>array</tt>, which does not meet the
15719 default-construct-to-empty requirement, or <tt>forward_list</tt> which does not
15720 support the size operation. Are these components no longer containers?
15721 Does that mean the remaining requirements don't apply? Or are these
15722 contradictions that need fixing, despite being a clear design decision?
15730 Clarify all the tables in 23.2 [container.requirements] are
15731 there as a convenience for documentation, rather than a strict set of
15732 requirements. Containers should be allowed to relax specific
15733 requirements if they call attention to them in their documentation. The
15734 introductory text for <tt>array</tt> should be expanded to mention a
15735 default constructed <tt>array</tt> is not empty, and
15736 <tt>forward_list</tt> introduction should mention it does not provide
15737 the required <tt>size</tt> operation as it cannot be implemented
15747 Agree in principle.
15751 2009-07 post-Frankfurt:
15756 We agree in principle, but we have a timetable. This group feels that
15757 the issue should be closed as NAD unless a proposed resolution is
15758 submitted prior to the March 2010 meeting.
15762 2009-10 Santa Cruz:
15767 Looked at this and still intend to close as NAD in March
15768 2010 unless there is proposed wording that we like.
15773 <p><b>Proposed resolution:</b></p>
15780 <h3><a name="1052"></a>1052. Response to UK 281</h3>
15781 <p><b>Section:</b> 24.5.1.3.5 [reverse.iter.opref] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
15782 <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-12 <b>Last modified:</b> 2009-10-22</p>
15783 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
15784 <p><b>Discussion:</b></p>
15786 <p><b>Addresses UK 281</b></p>
15789 The current specification for return value for <tt>reverse_iterator::operator-></tt>
15790 will always be a true pointer type, but <tt>reverse_iterator</tt> supports proxy
15791 iterators where the pointer type may be some kind of 'smart pointer'.
15801 <tt>move_iterator</tt> avoids this problem by returning a value of the wrapped
15803 study group formed to come up with a suggested resolution.
15806 <tt>move_iterator</tt> solution shown in proposed wording.
15811 2009-07 post-Frankfurt:
15816 Howard to deconceptize. Move to Review after that happens.
15820 2009-08-01 Howard deconceptized:
15828 2009-10 Santa Cruz:
15834 We can't think of any reason we can't just define reverse
15835 iterator's pointer types to be the same as the underlying iterator's
15836 pointer type, and get it by calling the right arrow directly.
15839 Here is the proposed wording that was replaced:
15841 <blockquote><pre>template <class Iterator>
15842 class reverse_iterator {
15844 typedef <del>typename iterator_traits<</del>Iterator<del>>::pointer</del> pointer;
15845 </pre></blockquote>
15848 Change 24.5.1.3.5 [reverse.iter.opref]:
15851 <blockquote><pre>pointer operator->() const;
15855 <blockquote><pre><del>&(operator*());</del>
15856 <ins>this->tmp = current;</ins>
15857 <ins>--this->tmp;</ins>
15858 <ins>return this->tmp;</ins>
15859 </pre></blockquote>
15866 <p><b>Proposed resolution:</b></p>
15868 Change 24.5.1.3.5 [reverse.iter.opref]:
15871 <blockquote><pre>pointer operator->() const;
15875 <blockquote><pre><del>&(operator*());</del>
15876 <ins>deref_tmp = current;
15878 return deref_tmp::operator->();</ins>
15879 </pre></blockquote>
15892 <h3><a name="1056"></a>1056. Must all Engines and Distributions be Streamable?</h3>
15893 <p><b>Section:</b> 26.5 [rand] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#NAD">Tentatively NAD</a>
15894 <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-12 <b>Last modified:</b> 2009-11-03</p>
15895 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#rand">issues</a> in [rand].</p>
15896 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Tentatively%20NAD">Tentatively NAD</a> status.</p>
15897 <p><b>Discussion:</b></p>
15900 Both the concepts <tt>RandomNumberEngine</tt> and <tt>RandomNumberDistribution</tt> have
15901 requirements to be <tt>InputStreamable</tt> and <tt>OutputStreamable</tt>.
15904 I have no problems leaving the WP in an inconsistent state on the best-faith
15905 assumption these concepts will be provided later, however disagree with the
15906 proposers that these constraints are not separable, orthogonal to the basic
15907 concepts of generating random number distributions.
15910 These constraints should be dropped, and applied to specific algorithms as
15914 If a more refined concept (certainly deemed useful by the proposers) is
15915 proposed there is no objection, but the basic concept should not require
15916 persistence via streaming.
15928 2009-05-31 Alisdair adds:
15934 Working on constraining the stream iterators, I have a few more observations
15935 to make on the concepts proposed while constraining the random number
15939 While I still believe the concerns are orthogonal, I don't believe the
15940 existing constraints go far enough either! The goal we want to achieve is
15941 not that a <tt>RandomNumberEngine</tt> / <tt>RandomNumberDistribution</tt> supports the stream
15942 operators, but that it is <tt>Serializable</tt>. I.e. there is a relationship
15943 between the insert and extract operations that guarantees to restore the
15944 state of the original object. This implies a coupling of the concepts
15945 together in a broader concept (<tt>Serializable</tt>) with at least one axiom to
15946 assert the semantics.
15949 One problem is that <tt>istream</tt> and <tt>ostream</tt> may be fundamentally different
15950 types, although we can hook a relation if we are prepared to drop down to
15951 the <tt>char</tt> type and <tt>char_traits</tt> template parameters. Doing so ties us to a
15952 form of serialization that demands implementation via the std iostreams
15953 framework, which seems overly prescriptive. I believe the goal is generally
15954 to support serialization without regard to how it is expressed - although
15955 this is getting even more inventive in terms of concepts we do not have
15961 2009-11-03 Alisdair adds:
15967 I can't find the record in the wiki minutes, but it was agreed at both
15968 Frankfurt and Santa Cruz that this issue is NAD.
15971 The agreement in SC was that I would provide you with the rationale (see
15972 below) to include when moving to NAD.
15977 2009-11-03 Howard adds:
15982 Moved to Tentatively NAD after 5 positive votes on c++std-lib.
15986 <p><b>Proposed resolution:</b></p>
15989 <p><b>Rationale:</b></p>
15991 The issue suggests a more refined concept should be used if we want to
15992 require streaming, to separate concerns from the basic
15993 <tt>RandomNumberEngine</tt> behaviour. In Frankfurt it was observed
15994 that <tt>RandomNumberEngine</tt> <em>is</em> that more refined concept,
15995 and the basic concept used in the framework is
15996 <tt>UniformRandomNumberGenerator</tt>, which it refines.
16000 We concur, and expect this to have no repurcussions re-writing this
16001 clause now concepts are removed.
16009 <h3><a name="1068"></a>1068. class random_device should be movable</h3>
16010 <p><b>Section:</b> 26.5.6 [rand.device] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
16011 <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-18 <b>Last modified:</b> 2009-10-26</p>
16012 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#rand.device">issues</a> in [rand.device].</p>
16013 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
16014 <p><b>Discussion:</b></p>
16017 class <tt>random_device</tt> should be movable.
16025 Move to Open, and recommend this issue be deferred until after the next
16026 Committee Draft is issued.
16030 2009-10 post-Santa Cruz:
16035 Leave open. Walter to provide drafting as part of his planned paper.
16040 <p><b>Proposed resolution:</b></p>
16047 <h3><a name="1069"></a>1069. class seed_seq should support efficient move operations</h3>
16048 <p><b>Section:</b> 26.5.7.1 [rand.util.seedseq] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
16049 <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-18 <b>Last modified:</b> 2009-10-26</p>
16050 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#rand.util.seedseq">issues</a> in [rand.util.seedseq].</p>
16051 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
16052 <p><b>Discussion:</b></p>
16055 class <tt>seed_seq</tt> should support efficient move operations.
16063 Move to Open, and recommend this issue be deferred until after the next
16064 Committee Draft is issued.
16068 2009-10 post-Santa Cruz:
16073 Leave open. Walter to provide drafting as part of his planned paper.
16078 <p><b>Proposed resolution:</b></p>
16085 <h3><a name="1071"></a>1071. is_bind_expression should derive from integral_constant<bool></h3>
16086 <p><b>Section:</b> 20.7.11.1.1 [func.bind.isbind] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Tentatively Ready</a>
16087 <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-19 <b>Last modified:</b> 2009-10-26</p>
16088 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Tentatively%20Ready">Tentatively Ready</a> status.</p>
16089 <p><b>Discussion:</b></p>
16092 Class template is_bind_expression 20.7.11.1.1 [func.bind.isbind]:
16095 <blockquote><pre>namespace std {
16096 template<class T> struct is_bind_expression {
16097 static const bool value = see below;
16100 </pre></blockquote>
16102 <tt>is_bind_expression</tt> should derive from <tt>std::integral_constant<bool></tt> like
16103 other similar trait types.
16111 We need the same thing for the trait <tt>is_placeholder</tt> as well.
16114 2009-03-22 Daniel provided wording.
16124 We recommend this be deferred until after the next Committee Draft is issued.
16132 2009-05-31 Peter adds:
16138 I am opposed to the proposed resolution and to the premise of the issue
16139 in general. The traits's default definitions should NOT derive from
16140 <tt>integral_constant</tt>, because this is harmful, as it misleads people into
16141 thinking that <tt>is_bind_expression<E></tt> always derives from
16142 <tt>integral_constant</tt>, whereas it may not.
16145 <tt>is_bind_expression</tt> and <tt>is_placeholder</tt> allow user
16146 specializations, and in fact, this is their primary purpose. Such user
16147 specializations may not derive from <tt>integral_constant</tt>, and the
16148 places where <tt>is_bind_expression</tt> and <tt>is_placeholder</tt> are
16149 used intentionally do not require such derivation.
16152 The long-term approach here is to switch to
16153 <tt>BindExpression<E></tt> and <tt>Placeholder<P></tt>
16154 explicit concepts, of course, but until that happens, I say leave them
16160 2009-10 post-Santa Cruz:
16165 Move to Tentatively Ready. We are comfortable with requiring user specializations
16166 to derive from <tt>integral_constant</tt>.
16171 <p><b>Proposed resolution:</b></p>
16175 In 20.7.11.1.1 [func.bind.isbind] change as indicated:
16177 <blockquote><pre>namespace std {
16178 template<class T> struct is_bind_expression <ins>: integral_constant<bool, <i>see below</i>> { };</ins><del>{
16179 static const bool value = <i>see below</i>;
16182 </pre></blockquote>
16186 In 20.7.11.1.1 [func.bind.isbind]/2 change as indicated:
16188 <blockquote><pre><del>static const bool value;</del>
16191 -2- <del><tt>true</tt> if <tt>T</tt> is a type returned from <tt>bind</tt>, <tt>false</tt> otherwise.</del>
16192 <ins>If <tt>T</tt> is a type returned from <tt>bind</tt>, <tt>is_bind_expression<T></tt> shall
16193 be publicly derived from
16194 <tt>integral_constant<bool, true></tt>, otherwise it shall be
16195 publicly derived from
16196 <tt>integral_constant<bool, false></tt>.</ins>
16202 In 20.7.11.1.2 [func.bind.isplace] change as indicated:
16204 <blockquote><pre>namespace std {
16205 template<class T> struct is_placeholder <ins>: integral_constant<int, <i>see below</i>> { };</ins><del>{
16206 static const int value = <i>see below</i>;
16209 </pre></blockquote>
16213 In 20.7.11.1.2 [func.bind.isplace]/2 change as indicated:
16215 <blockquote><pre><del>static const int value;</del>
16218 -2- <del>value is <tt>J</tt> if <tt>T</tt> is the type of <tt>std::placeholders::_J</tt>, 0 otherwise.</del>
16219 <ins>If <tt>T</tt> is the type of <tt>std::placeholders::_J</tt>, <tt>is_placeholder<T></tt>
16221 derived from <tt>integral_constant<int, J></tt> otherwise it shall
16222 be publicly derived
16223 from <tt>integral_constant<int, 0></tt>.</ins>
16234 <h3><a name="1076"></a>1076. unary/binary_negate need constraining and move support</h3>
16235 <p><b>Section:</b> 20.7.10 [negators] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
16236 <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-20 <b>Last modified:</b> 2009-10-26</p>
16237 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
16238 <p><b>Discussion:</b></p>
16240 The class templates <tt>unary/binary_negate</tt> need constraining and move support.
16243 Ideally these classes would be deprecated, allowing <tt>unary/binary_function</tt> to
16244 also be deprecated. However, until a generic negate adaptor is introduced
16245 that can negate any <tt>Callable</tt> type, they must be supported so should be
16246 constrained. Likewise, they should be movable, and support adopting a
16247 move-only predicate type.
16250 In order to preserve ABI compatibility, new rvalue overloads are supplied in
16251 preference to changing the existing pass-by-const-ref to pass-by-value.
16254 Do not consider the issue of forwarding mutable lvalues at this point,
16255 although remain open to another issue on the topic.
16259 2009-05-01 Daniel adds:
16264 IMO the currently proposed resolution needs some updates
16265 because it is ill-formed at several places:
16271 In concept AdaptableUnaryFunction change
16273 <blockquote><pre>typename X::result_type;
16274 typename X::argument_type;
16275 </pre></blockquote>
16279 <blockquote><pre>Returnable result_type = typename X::result_type;
16280 typename argument_type = typename X::argument_type;
16281 </pre></blockquote>
16283 [The replacement "Returnable result_type" instead of "typename
16284 result_type" is non-editorial, but maybe you prefer that as well]
16289 In concept AdaptableBinaryFunction change
16291 <blockquote><pre>typename X::result_type;
16292 typename X::first_argument_type;
16293 typename X::second_argument_type;
16294 </pre></blockquote>
16298 <blockquote><pre>Returnable result_type = typename X::result_type;
16299 typename first_argument_type = typename X::first_argument_type;
16300 typename second_argument_type = typename X::second_argument_type;
16301 </pre></blockquote>
16303 [The replacement "Returnable result_type" instead of "typename
16304 result_type" is non-editorial, but maybe you prefer that as well.]
16310 In class unary/binary_function
16314 I suggest to change "ReturnType" to "Returnable" in both cases.
16317 I think you want to replace the remaining occurrences of "Predicate" by "P"
16318 (in both classes in copy/move from a predicate)
16324 I think you need to change the proposed signatures of not1 and not2, because
16325 they would still remain unconstrained: To make them constrained at least a
16326 single requirement needs to be added to enable requirement implication. This
16327 could be done via a dummy ("requires True<true>") or just explicit as follows:
16331 <blockquote><pre>template <AdaptableUnaryFunction P>
16332 requires Predicate< P, P::argument_type>
16333 unary_negate<P> not1(const P&& pred);
16334 template <AdaptableUnaryFunction P>
16335 requires Predicate< P, P::argument_type >
16336 unary_negate<P> not1(P&& pred);
16339 -3- Returns: unary_negate<P>(pred).
16343 [Don't we want a move call for the second overload as in
16345 <blockquote><pre>unary_negate<P>(std::move(pred))
16346 </pre></blockquote>
16348 in the Returns clause ?]
16352 <pre>template <AdaptableBinaryFunction P>
16353 requires Predicate< P, P::first_argument_type, P::second_argument_type >
16354 binary_negate<P> not2(const P& pred);
16355 template <AdaptableBinaryFunction P>
16356 requires Predicate< P, P::first_argument_type, P::second_argument_type >
16357 binary_negate<P> not2(P&& pred);
16360 -5- Returns: binary_negate<P>(pred).
16363 [Don't we want a move call for the second overload as in
16365 <blockquote><pre>binary_negate<P>(std::move(pred))
16366 </pre></blockquote>
16368 in the Returns clause ?]
16382 There is concern that complicating the solution
16383 to preserve the ABI seems unnecessary,
16384 since we're not in general preserving the ABI.
16387 We would prefer a separate paper consolidating all Clause 20
16388 issues that are for the purpose of providing constrained versions
16389 of the existing facilities.
16397 2009-10 post-Santa Cruz:
16402 Leave open pending the potential move constructor paper. Note that
16403 we consider the "constraining" part NAD Concepts.
16408 <p><b>Proposed resolution:</b></p>
16410 Add new concepts where appropriate::
16413 <blockquote><pre>auto concept AdaptableUnaryFunction< typename X > {
16414 typename X::result_type;
16415 typename X::argument_type;
16418 auto concept AdaptableBinaryFunction< typename X > {
16419 typename X::result_type;
16420 typename X::first_argument_type;
16421 typename X::second_argument_type;
16423 </pre></blockquote>
16430 Base 20.7.3 [base] (Only change is constrained Result)
16435 -1- The following classes are provided to simplify the typedefs of the
16436 argument and result types:
16438 <pre>namespace std {
16439 template <class Arg, <del>class</del> <ins>ReturnType</ins> Result>
16440 struct unary_function {
16441 typedef Arg argument_type;
16442 typedef Result result_type;
16445 template <class Arg1, class Arg2, <del>class</del> <ins>ReturnType</ins> Result>
16446 struct binary_function {
16447 typedef Arg1 first_argument_type;
16448 typedef Arg2 second_argument_type;
16449 typedef Result result_type;
16452 </pre></blockquote>
16455 Negators 20.7.10 [negators]:
16460 -1- Negators <tt>not1</tt> and <tt>not2</tt> take a unary and a binary predicate,
16461 respectively, and return their complements (5.3.1).
16464 <pre>template <<del>class</del> <ins>AdaptableUnaryFunction</ins> P<del>redicate</del>>
16465 <ins>requires Predicate< P, P::argument_type ></ins>
16467 : public unary_function<<del>typename</del> P<del>redicate</del>::argument_type,bool> {
16469 <ins>unary_negate(const unary_negate & ) = default;</ins>
16470 <ins>unary_negate(unary_negate && );</ins>
16472 <ins>requires CopyConstructible< P ></ins>
16473 explicit unary_negate(const Predicate& pred);
16474 <ins>requires MoveConstructible< P >
16475 explicit unary_negate(Predicate && pred);</ins>
16477 bool operator()(const <del>typename</del> P<del>redicate</del>::argument_type& x) const;
16481 -2 <tt>operator()</tt> returns <tt>!pred(x)</tt>.
16484 <pre>template <class Predicate>
16485 unary_negate<Predicate> not1(const Predicate&amp; pred);
16486 <ins>template <class Predicate>
16487 unary_negate<Predicate> not1(Predicate&& pred);</ins>
16490 -3- <i>Returns:</i> <tt>unary_negate<Predicate>(pred)</tt>.
16493 <pre>template <<del>class</del> <ins>AdaptableBinaryFunction</ins> P<del>redicate</del> >
16494 <ins>requires Predicate< P, P::first_argument_type, P::second_argument_type ></ins>
16495 class binary_negate
16496 : public binary_function<<del>typename</del> P<del>redicate</del>::first_argument_type,
16497 <del>typename</del> P<del>redicate</del>::second_argument_type, bool> {
16499 <ins>biary_negate(const binary_negate & ) = default;</ins>
16500 <ins>binary_negate(binary_negate && );</ins>
16502 <ins>requires CopyConstructible< P ></ins>
16503 explicit binary_negate(const Predicate& pred);
16504 <ins>requires MoveConstructible< P >
16505 explicit binary_negate(const Predicate& pred);</ins>
16507 bool operator()(const <del>typename</del> P<del>redicate</del>::first_argument_type& x,
16508 const <del>typename</del> P<del>redicate</del>::second_argument_type& y) const;
16512 -4- <tt>operator()</tt> returns <tt>!pred(x,y)</tt>.
16515 <pre>template <class Predicate>
16516 binary_negate<Predicate> not2(const Predicate& pred);
16517 <ins>template <class Predicate>
16518 binary_negate<Predicate> not2(Predicate&& pred);</ins>
16522 -5- <i>Returns:</i> <tt>binary_negate<Predicate>(pred)</tt>.
16532 <h3><a name="1079"></a>1079. UK-265: <code>RandomAccessIterator</code>'s <code>operator-</code> has nonsensical effects clause</h3>
16533 <p><b>Section:</b> 24.2.5 [random.access.iterators] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
16534 <b>Submitter:</b> Doug Gregor <b>Opened:</b> 2009-03-20 <b>Last modified:</b> 2009-10-23</p>
16535 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#random.access.iterators">issues</a> in [random.access.iterators].</p>
16536 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
16537 <p><b>Discussion:</b></p>
16538 <p><b>Addresses UK 265</b></p>
16542 This effects clause is nonesense. It looks more like an axiom stating
16543 equivalence, and certainly an effects clause cannot change the state of
16544 two arguments passed by const reference
16548 2009-09-18 Alisdair adds:
16554 For random access iterators, the definitions of <tt>(b-a)</tt> and
16555 <tt>(a<b)</tt> are circular:
16559 From table Table 104 -- Random access iterator requirements:
16562 <blockquote><pre>b - a :==> (a < b) ? distance(a,b) : -distance(b,a)
16564 a < b :==> b - a > 0
16565 </pre></blockquote>
16569 2009-10 Santa Cruz:
16579 <p><b>Proposed resolution:</b></p>
16581 <p>Modify 24.2.5 [random.access.iterators]p7-9 as follows:</p>
16583 <blockquote><pre>difference_type operator-(const X& a, const X& b);
16586 <li><i>Precondition</i>: there exists a value <code>n</code> of
16587 <code>difference_type</code> such that <code>a == b + n</code>.</li>
16588 <li><del><i>Effects</i>: <code>b == a + (b - a)</code></del></li>
16589 <li><i>Returns</i>: <del><code>(a < b) ? distance(a,b) :
16590 -distance(b,a)</code></del><ins><code>n</code></ins></li>
16599 <h3><a name="1089"></a>1089. Response to JP 76</h3>
16600 <p><b>Section:</b> 30 [thread] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
16601 <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-03-22 <b>Last modified:</b> 2009-10-23</p>
16602 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#thread">issues</a> in [thread].</p>
16603 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
16604 <p><b>Discussion:</b></p>
16605 <p><b>Addresses JP 76</b></p>
16608 A description for "Throws: Nothing." are not unified.
16612 At the part without throw, "Throws: Nothing." should be described.
16616 Add "Throws: Nothing." to the following.
16621 30.3.1.6 [thread.thread.static] p1
16624 30.4.3.1 [thread.lock.guard] p4
16627 30.4.3.2.1 [thread.lock.unique.cons] p6
16630 30.5.1 [thread.condition.condvar] p7 and p8
16633 30.5.2 [thread.condition.condvarany] p6, p7, p19, p21 and p25
16646 Post Summit: Editor declares this non-editorial.
16651 2009-08-01 Howard provided wording:
16658 The definition of "<i>Throws:</i> Nothing." that I added is probably going to
16659 be controversial, but I beg you to consider it seriously.
16664 In C++ there are three "flow control" options for a function:
16669 It can return, either with a value, or with <tt>void</tt>.
16672 It can call a function which never returns, such as <tt>std::exit</tt> or
16673 <tt>std::terminate</tt>.
16676 It can throw an exception.
16680 The above list can be abbreviated with:
16683 <li><b>R</b>eturns.</li>
16684 <li><b>E</b>nds program.</li>
16685 <li><b>T</b>hrows exception.</li>
16689 In general a function can have the behavior of any of these 3, or any combination
16690 of any of these three, depending upon run time data.
16700 <li><b>RET</b></li>
16704 A function with no throw spec, and no documentation, is in general a <b>RET</b>
16705 function. It may return, it may end the program, or it may throw. When we
16706 specify a function with an empty throw spec:
16709 <blockquote><pre>void f() throw();
16710 </pre></blockquote>
16713 We are saying that <tt>f()</tt> is an <b>RE</b> function: It may return or end
16714 the program, but it will not throw.
16718 I posit that there are very few places in the library half of the standard
16719 where we intend for functions to be able to end the program (call <tt>terminate</tt>).
16720 And none of those places where we do say <tt>terminate</tt> could be called,
16721 do we currently say "<i>Throws:</i> Nothing.".
16725 I believe that if we define "<i>Throws:</i> Nothing." to mean <b>R</b>,
16726 we will both clarify many, many places in the standard, <em>and</em> give us a
16727 good rationale for choosing between "<i>Throws:</i> Nothing." (<b>R</b>)
16728 and <tt>throw()</tt> (<b>RE</b>) in the future. Indeed, this may give us motivation
16729 to change several <tt>throw()</tt>s to "<i>Throws:</i> Nothing.".
16734 I did not add the following changes as JP 76 requested as I believe we want to
16735 allow these functions to throw:
16740 Add a paragraph under 30.4.3.1 [thread.lock.guard] p4:
16743 <blockquote><pre>explicit lock_guard(mutex_type& m);
16747 <i>Throws:</i> Nothing.
16752 Add a paragraph under 30.4.3.2.1 [thread.lock.unique.cons] p6:
16755 <blockquote><pre>explicit unique_lock(mutex_type& m);
16759 <i>Throws:</i> Nothing.
16764 Add a paragraph under 30.5.2 [thread.condition.condvarany] p19, p21 and p25:
16767 <blockquote><pre>template <class Lock, class Rep, class Period>
16768 bool wait_for(Lock& lock, const chrono::duration<Rep, Period>& rel_time);
16772 <i>Throws:</i> Nothing.
16776 <blockquote><pre>template <class Lock, class Duration, class Predicate>
16777 bool wait_until(Lock& lock, const chrono::time_point<Clock, Duration>& rel_time, Predicate pred);
16781 <i>Throws:</i> Nothing.
16785 <blockquote><pre>template <class Lock, class Rep, class Period, class Predicate>
16786 bool wait_for(Lock& lock, const chrono::duration<Rep, Period>& rel_time, Predicate pred);
16790 <i>Throws:</i> Nothing.
16799 2009-10 Santa Cruz:
16804 Defer pending further developments with exception restriction annotations.
16809 <p><b>Proposed resolution:</b></p>
16811 Add a paragraph after 17.5.1.4 [structure.specifications] p4:
16816 -3- Descriptions of function semantics contain the following elements
16817 (as appropriate):<sup>158</sup>
16822 <i>Throws:</i> any exceptions thrown by the function, and the conditions
16823 that would cause the exception
16829 -4- For non-reserved replacement and handler functions, ...
16833 A "<i>Throws:</i> Nothing." element indicates that the function shall
16834 return ordinarily, and not exit via an exception. This element also
16835 indicates that the function <em>shall</em> return. [<i>Note:</i> This
16836 differs from an empty throw specification which may cause a function to
16837 call <tt>unexpected</tt> and subsequently <tt>terminate</tt>. —
16843 Add a paragraph under 30.3.1.6 [thread.thread.static] p1:
16846 <blockquote><pre>unsigned hardware_concurrency();
16850 -1- <i>Returns:</i> ...
16854 <i>Throws:</i> Nothing.
16859 Add a paragraph under 30.5.1 [thread.condition.condvar] p7 and p8:
16864 <i>[Informational, not to be incluced in the WP: The POSIX spec allows only:</i>
16867 <dt><i>[EINVAL]</i></dt>
16868 <dd><i>The value <tt>cond</tt> does not refer to an initialized condition variable. — end informational]</i></dd>
16871 <pre>void notify_one();
16875 -7- <i>Effects:</i> ...
16879 <i>Throws:</i> Nothing.
16883 <blockquote><pre>void notify_all();
16887 -8- <i>Effects:</i> ...
16891 <i>Throws:</i> Nothing.
16897 Add a paragraph under 30.5.2 [thread.condition.condvarany] p6 and p7:
16901 <pre>void notify_one();
16905 -6- <i>Effects:</i> ...
16909 <i>Throws:</i> Nothing.
16913 <blockquote><pre>void notify_all();
16917 -7- <i>Effects:</i> ...
16921 <i>Throws:</i> Nothing.
16932 <h3><a name="1090"></a>1090. Missing description of <tt>packaged_task</tt> member <tt>swap</tt>, missing non-member <tt>swap</tt></h3>
16933 <p><b>Section:</b> 30.6.10 [futures.task] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Tentatively Ready</a>
16934 <b>Submitter:</b> Daniel Krügler <b>Opened:</b> 2009-03-22 <b>Last modified:</b> 2009-10-26</p>
16935 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Tentatively%20Ready">Tentatively Ready</a> status.</p>
16936 <p><b>Discussion:</b></p>
16938 Class template <tt>packaged_task</tt> in 30.6.10 [futures.task] shows a member <tt>swap</tt>
16939 declaration, but misses to
16940 document it's effects (No prototype provided). Further on this class
16941 misses to provide a non-member
16951 Alisdair notes that paragraph 2 of the proposed resolution has already been
16952 applied in the current Working Draft.
16955 We note a pending <tt>future</tt>-related paper by Detlef;
16956 we would like to wait for this paper before proceeding.
16964 2009-05-24 Daniel removed part 2 of the proposed resolution.
16969 2009-10 post-Santa Cruz:
16974 Move to Tentatively Ready, removing bullet 3 from the proposed
16975 resolution but keeping the other two bullets.
16980 <p><b>Proposed resolution:</b></p>
16984 In 30.6.10 [futures.task], immediately after the definition of class
16985 template packaged_task add:
16987 <blockquote><pre><ins>
16988 template<class R, class... Argtypes>
16989 void swap(packaged_task<R(ArgTypes...)>&, packaged_task<R(ArgTypes...)>&);
16991 </pre></blockquote>
16999 At the end of 30.6.10 [futures.task] (after p. 20), add add the following
17000 prototype description:
17003 <blockquote><pre><ins>
17004 template<class R, class... Argtypes>
17005 void swap(packaged_task<R(ArgTypes...)>& x, packaged_task<R(ArgTypes...)>& y);
17009 <i>Effects:</i> <tt>x.swap(y)</tt>
17012 <i>Throws:</i> Nothing.
17024 <h3><a name="1093"></a>1093. Multiple definitions for random_shuffle algorithm</h3>
17025 <p><b>Section:</b> 25.3.12 [alg.random.shuffle] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
17026 <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-22 <b>Last modified:</b> 2009-10-26</p>
17027 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#alg.random.shuffle">issues</a> in [alg.random.shuffle].</p>
17028 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
17029 <p><b>Discussion:</b></p>
17032 There are a couple of issues with the declaration of the <tt>random_shuffle</tt>
17033 algorithm accepting a random number engine.
17038 The Iterators must be shuffle iterators, yet this requirement is missing.
17041 The <tt>RandomNumberEngine</tt> concept is now provided by the random number
17043 (<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2836.pdf">n2836</a>)
17044 and the placeholder should be removed.
17049 2009-05-02 Daniel adds:
17055 this issue completes adding necessary requirement to the
17056 third new <tt>random_shuffle</tt> overload. The current suggestion is:
17059 <blockquote><pre>template<RandomAccessIterator Iter, UniformRandomNumberGenerator Rand>
17060 requires ShuffleIterator<Iter>
17061 void random_shuffle(Iter first, Iter last, Rand&& g);
17062 </pre></blockquote>
17065 IMO this is still insufficient and I suggest to add the requirement
17067 <blockquote><pre>Convertible<Rand::result_type, Iter::difference_type>
17068 </pre></blockquote>
17070 to the list (as the two other overloads already have).
17079 Its true that this third overload is somewhat different from the remaining
17080 two. Nevertheless we know from <tt>UniformRandomNumberGenerator</tt>, that
17081 it's <tt>result_type</tt> is an integral type and that it satisfies
17082 <tt>UnsignedIntegralLike<result_type></tt>.
17085 To realize it's designated task, the algorithm has to invoke the
17086 <tt>Callable</tt> aspect of <tt>g</tt> and needs to perform some algebra involving
17087 it's <tt>min()/max()</tt> limits to compute another index value that
17088 at this point is converted into <tt>Iter::difference_type</tt>. This is so,
17089 because 24.2.5 [random.access.iterators] uses this type as argument
17090 of it's algebraic operators. Alternatively consider the equivalent
17091 iterator algorithms in 24.4.4 [iterator.operations] with the same result.
17094 This argument leads us to the conclusion that we also need
17095 <tt>Convertible<Rand::result_type, Iter::difference_type></tt> here.
17107 Alisdair notes that point (ii) has already been addressed.
17110 We agree with the proposed resolution to point (i)
17111 with Daniel's added requirement.
17119 2009-06-05 Daniel updated proposed wording as recommended in Batavia.
17124 2009-07-28 Alisdair adds:
17129 Revert to Open, with a note there is consensus on direction but the
17130 wording needs updating to reflect removal of concepts.
17134 2009-10 post-Santa Cruz:
17139 Leave Open, Walter to work on it.
17144 <p><b>Proposed resolution:</b></p>
17146 Change in [algorithms.syn] and 25.3.12 [alg.random.shuffle]:
17149 <blockquote><pre><del>concept UniformRandomNumberGenerator<typename Rand> { }</del>
17150 template<RandomAccessIterator Iter, UniformRandomNumberGenerator Rand>
17151 <ins>requires ShuffleIterator<Iter> &&
17152 Convertible<Rand::result_type, Iter::difference_type></ins>
17153 void random_shuffle(Iter first, Iter last, Rand&& g);
17154 </pre></blockquote>
17162 <h3><a name="1094"></a>1094. Response to JP 65 and JP 66</h3>
17163 <p><b>Section:</b> 27.5.4.3 [iostate.flags] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
17164 <b>Submitter:</b> P.J. Plauger <b>Opened:</b> 2009-03-24 <b>Last modified:</b> 2009-10-20</p>
17165 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#iostate.flags">issues</a> in [iostate.flags].</p>
17166 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
17167 <p><b>Discussion:</b></p>
17168 <p><b>Addresses JP 65 and JP 66</b></p>
17171 Switch from "unspecified-bool-type" to "explicit operator bool() const".
17175 Replace <tt>operator unspecified-bool-type() const;</tt>" with <tt>explicit operator bool() const;</tt>
17183 We agree with the proposed resolution.
17198 <p><b>Proposed resolution:</b></p>
17200 Change the synopis in 27.5.4 [ios]:
17203 <blockquote><pre><ins>explicit</ins> operator <del><i>unspecified-bool-type</i></del> <ins>bool</ins>() const;
17204 </pre></blockquote>
17207 Change 27.5.4.3 [iostate.flags]:
17210 <blockquote><pre><ins>explicit</ins> operator <del><i>unspecified-bool-type</i></del> <ins>bool</ins>() const;
17215 -1- <i>Returns:</i> <ins><tt>!fail()</tt></ins> <del>If <tt>fail()</tt> then a value that will evaluate
17216 false in a boolean context; otherwise a value that will evaluate true in
17217 a boolean context. The value type returned shall not be convertible to
17221 <del>[<i>Note:</i> This conversion can be used in contexts where a bool is expected
17222 (e.g., an <tt>if</tt> condition); however, implicit conversions (e.g.,
17223 to <tt>int</tt>) that can occur with <tt>bool</tt> are not allowed,
17224 eliminating some sources of user error. One possible implementation
17225 choice for this type is pointer-to-member. <i>-- end note</i>]</del>
17237 <h3><a name="1095"></a>1095. <i>Shared objects and the library</i> wording unclear</h3>
17238 <p><b>Section:</b> 17.6.3.10 [res.on.objects] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
17239 <b>Submitter:</b> Beman Dawes <b>Opened:</b> 2009-03-27 <b>Last modified:</b> 2009-10-21</p>
17240 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
17241 <p><b>Discussion:</b></p>
17243 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2775.htm">N2775</a>,
17244 <i>Small library thread-safety revisions</i>, among other changes, removed a note from
17245 17.6.3.10 [res.on.objects] that read:
17249 [<i>Note:</i> This prohibition against concurrent non-const access means that
17250 modifying an object of a standard library type shared between threads
17251 without using a locking mechanism may result in a data race. <i>--end note</i>.]
17255 That resulted in wording which is technically correct but can only be
17256 understood by reading the lengthy and complex 17.6.4.8 [res.on.data.races]
17257 Data race avoidance. This has the effect of making
17258 17.6.3.10 [res.on.objects] unclear, and has already resulted in a query
17259 to the LWG reflector. See c++std-lib-23194.
17268 The proposed wording seems to need a bit of tweaking
17269 ("really bad idea" isn't quite up to standardese).
17270 We would like feedback
17271 as to whether the original Note's removal was intentional.
17274 Change the phrase "is a really bad idea"
17275 to "risks undefined behavior" and
17276 move to Review status.
17281 2009-10 Santa Cruz:
17286 Note: Change to read: "Modifying...", Delete 'thus', move to Ready
17291 <p><b>Proposed resolution:</b></p>
17293 Change 17.6.3.10 [res.on.objects] as indicated:
17298 The behavior of a program is undefined if calls to standard library
17299 functions from different threads may introduce a data race. The
17300 conditions under which this may occur are specified in 17.6.4.7.
17303 [<i>Note:</i> Modifying an object of a standard library type shared between
17304 threads risks undefined behavior unless objects of the type are explicitly
17305 specified as being sharable without data races or the user supplies a
17306 locking mechanism. <i>--end note</i>]
17315 <h3><a name="1097"></a>1097. #define __STDCPP_THREADS</h3>
17316 <p><b>Section:</b> 18.2 [support.types] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
17317 <b>Submitter:</b> Jens Maurer <b>Opened:</b> 2009-04-03 <b>Last modified:</b> 2009-10-21</p>
17318 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#support.types">issues</a> in [support.types].</p>
17319 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
17320 <p><b>Discussion:</b></p>
17321 <p><b>Addresses DE 18</b></p>
17324 Freestanding implementations do not (necessarily) have
17325 support for multiple threads (see 1.10 [intro.multithread]).
17326 Applications and libraries may want to optimize for the
17327 absence of threads. I therefore propose a preprocessor
17328 macro to indicate whether multiple threads can occur.
17332 There is ample prior implementation experience for this
17333 feature with various spellings of the macro name. For
17334 example, gcc implicitly defines <tt>_REENTRANT</tt>
17335 if multi-threading support is selected on the compiler
17340 While this is submitted as a library issue, it may be more
17341 appropriate to add the macro in 16.8 cpp.predefined in the
17347 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2693.html">N2693</a>.
17356 We agree with the issue, and believe it is properly a library issue.
17359 We prefer that the macro be conditionally defined
17360 as part of the <tt><thread></tt> header.
17368 2009-10 Santa Cruz:
17378 <p><b>Proposed resolution:</b></p>
17380 Insert a new subsection before 18.2 [support.types], entitled
17381 "Feature Macros" (support.macros):
17385 The standard library defines the following macros; no explicit
17386 prior inclusion of any header file is necessary.
17390 <dt><tt>__STDCPP_THREADS</tt></dt>
17392 The macro <tt>__STDCPP_THREADS</tt> shall be defined if and only if a
17393 program can have more than one thread of execution (1.10 [intro.multithread]).
17394 If the macro is defined, it shall have the same
17395 value as the predefined macro <tt>__cplusplus</tt> (16.8 [cpp.predefined]).
17407 <h3><a name="1098"></a>1098. definition of get_pointer_safety()</h3>
17408 <p><b>Section:</b> 20.8.15.6 [util.dynamic.safety] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
17409 <b>Submitter:</b> Jens Maurer <b>Opened:</b> 2009-04-03 <b>Last modified:</b> 2009-10-23</p>
17410 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#util.dynamic.safety">issues</a> in [util.dynamic.safety].</p>
17411 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
17412 <p><b>Discussion:</b></p>
17413 <p><b>Addresses DE 18</b></p>
17416 In 20.8.15.6 [util.dynamic.safety], <tt>get_pointer_safety()</tt> purports
17417 to define behavior for
17418 non-safely derived pointers (3.7.4.3 [basic.stc.dynamic.safety]). However,
17419 the cited core-language section in paragraph 4 specifies undefined behavior
17420 for the use of such pointer values. This seems an unfortunate near-contradiction.
17421 I suggest to specify the term <i>relaxed pointer safety</i> in
17422 the core language section and refer to it from the library description.
17423 This issue deals with the library part, the corresponding core issue (c++std-core-13940)
17424 deals with the core modifications.
17429 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2693.html">N2693</a>.
17438 We recommend if this issue is to be moved,
17439 the issue be moved concurrently with the cited Core issue.
17442 We agree with the intent of the proposed resolution.
17443 We would like input from garbage collection specialists.
17451 2009-10 Santa Cruz:
17456 The core issue is 853 and is in Ready status.
17461 <p><b>Proposed resolution:</b></p>
17463 In 20.8.15.6 [util.dynamic.safety] p16, replace the description of
17464 <tt>get_pointer_safety()</tt> with:
17469 <tt>pointer_safety get_pointer_safety();</tt>
17473 <del><i>Returns:</i> an enumeration value indicating the implementation's treatment
17474 of pointers that are not safely derived (3.7.4.3). Returns
17475 <tt>pointer_safety::relaxed</tt> if pointers that are not safely derived will be
17476 treated the same as pointers that are safely derived for the duration of
17477 the program. Returns <tt>pointer_safety::preferred</tt> if pointers that are not
17478 safely derived will be treated the same as pointers that are safely
17479 derived for the duration of the program but allows the implementation to
17480 hint that it could be desirable to avoid dereferencing pointers that are
17481 not safely derived as described. [<i>Example:</i> <tt>pointer_safety::preferred</tt>
17482 might be returned to detect if a leak detector is running to avoid
17483 spurious leak reports. -- <i>end note</i>] Returns <tt>pointer_safety::strict</tt> if
17484 pointers that are not safely derived might be treated differently than
17485 pointers that are safely derived.</del>
17488 <i>Returns:</i> Returns <tt>pointer_safety::strict</tt> if the implementation has
17489 strict pointer safety (3.7.4.3 [basic.stc.dynamic.safety]). It is
17490 implementation-defined whether <tt>get_pointer_safety</tt> returns
17491 <tt>pointer_safety::relaxed</tt> or <tt>pointer_safety::preferred</tt> if the
17492 implementation has relaxed pointer safety
17493 (3.7.4.3 [basic.stc.dynamic.safety]).<sup>Footnote</sup>
17497 <i>Throws:</i> nothing
17501 Footnote) <tt>pointer_safety::preferred</tt> might be returned to indicate to the
17502 program that a leak detector is running so that the program can avoid
17503 spurious leak reports.
17515 <h3><a name="1099"></a>1099. Various issues</h3>
17516 <p><b>Section:</b> 17 [library] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#NAD">Tentatively NAD</a>
17517 <b>Submitter:</b> David Abrahams <b>Opened:</b> 2009-03-21 <b>Last modified:</b> 2009-10-26</p>
17518 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#library">active issues</a> in [library].</p>
17519 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#library">issues</a> in [library].</p>
17520 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Tentatively%20NAD">Tentatively NAD</a> status.</p>
17521 <p><b>Discussion:</b></p>
17527 [2009-03-21 Sat] p. 535 at the top we need MoveConstructible V1,
17528 MoveConstructible V2 (where V1,V2 are defined on 539). Also make_tuple
17537 <blockquote><pre>template <MoveConstructible T1, MoveConstructible T2>
17538 pair<V1, V2> make_pair(T1&&, T2&&);
17539 </pre></blockquote>
17542 Actually I'm guessing we need something like <tt>MoveConstructible<V1,T1></tt>,
17543 i.e. "<tt>V1</tt> can be constructed from an rvalue of type <tt>T1</tt>."
17547 Ditto for <tt>make_tuple</tt>
17552 [2009-03-21 Sat] p1183 thread ctor, and in general, we need a way to
17553 talk about "copiable from generalized rvalue ref argument" for cases
17554 where we're going to forward and copy.
17558 This issue may well be quite large. Language in para 4 about "if
17559 an lvalue" is wrong because types aren't expressions.
17564 Maybe we should define the term "move" so we can just say in the
17565 effects, "<tt>f</tt> is moved into the newly-created thread" or something, and
17566 agree (and ideally document) that saying "<tt>f</tt> is moved" implies
17569 <blockquote><pre>F x(move(f))
17570 </pre></blockquote>
17573 is required to work. That would cover both ctors at once.
17578 p1199, call_once has all the same issues.
17582 [2009-03-21 Sat] p869 InputIterator pointer type should not be required
17583 to be convertible to const value_type*, rather it needs to have a
17584 operator-> of its own that can be used for the value type.
17588 This one is serious and unrelated to the move issue.
17592 [2009-03-21 Sat] p818 stack has the same problem with default ctor.
17595 [2009-03-21 Sat] p816 priority_queue has the same sorts of problems as queue, only more so
17597 <blockquote><pre> requires MoveConstructible<Cont>
17598 explicit priority_queue(const Compare& x = Compare(), Cont&& = Cont());
17601 Don't require MoveConstructible when default constructing Cont.
17602 Also missing semantics for move ctor.
17606 [2009-03-21 Sat] Why are Allocators required to be CopyConstructible as
17607 opposed to MoveConstructible?
17610 [2009-03-21 Sat] p813 queue needs a separate default ctor (Cont needn't
17611 be MoveConstructible). No documented semantics for move c'tor. Or
17612 *any* of its 7 ctors!
17615 [2009-03-21 Sat] std::array should have constructors for C++0x,
17616 consequently must consider move construction.
17620 2009-05-01 Daniel adds:
17625 This could be done as part of <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1035">1035</a>, which already handles
17626 deviation of <tt>std::array</tt> from container tables.
17630 [2009-03-21 Sat] p622 all messed up.
17634 para 8 "implementation-defined" is the wrong term; should be "see
17635 below" or something.
17638 para 12 "will be selected" doesn't make any sense because we're not
17639 talking about actual arg types.
17642 paras 9-13 need to be totally rewritten for concepts.
17647 [2009-03-21 Sat] Null pointer comparisons (p587) have all become
17648 unconstrained. Need to fix that
17651 [2009-03-21 Sat] mem_fun_t etc. definition doesn't match declaration.
17652 We think CopyConstructible is the right reqt.
17655 make_pair needs Constructible<V1, T1&&> requirements!
17658 make_tuple needs something similar
17661 tuple bug in synopsis:
17663 <blockquote><pre> template <class... UTypes>
17664 requires Constructible<Types, const UTypes&>...
17665 template <class... UTypes>
17666 requires Constructible<Types, RvalueOf<UTypes>::type>...
17669 Note: removal of MoveConstructible requirements in std::function makes
17670 these routines unconstrained!
17675 2009-05-02 Daniel adds:
17680 This part of the issue is already covered by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1077">1077</a>.
17684 these unique_ptr constructors are broken [ I think this is covered in "p622 all messed up" ]
17686 <blockquote><pre> unique_ptr(pointer p, implementation-defined d);
17687 unique_ptr(pointer p, implementation-defined d);
17688 </pre></blockquote>
17690 multimap range constructor should not have MoveConstructible<value_type> requirement.
17693 same with insert(..., P&&); multiset has the same issue, as do
17694 unordered_multiset and unordered_multimap. Review these!
17704 Move to Open, pending proposed wording from Dave for further review.
17708 2009-10 post-Santa Cruz:
17713 Tentatively NAD. We are not sure what has been addressed and what hasn't.
17714 Recommend closing unless someone sorts this out into something more readable.
17719 <p><b>Proposed resolution:</b></p>
17728 <h3><a name="1100"></a>1100. <tt>auto_ptr</tt> to <tt>unique_ptr</tt> conversion</h3>
17729 <p><b>Section:</b> 20.8.14.2.1 [unique.ptr.single.ctor] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
17730 <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-04-25 <b>Last modified:</b> 2009-10-21</p>
17731 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#unique.ptr.single.ctor">active issues</a> in [unique.ptr.single.ctor].</p>
17732 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#unique.ptr.single.ctor">issues</a> in [unique.ptr.single.ctor].</p>
17733 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
17734 <p><b>Discussion:</b></p>
17736 Message c++std-lib-23182 led to a discussion in which several people
17737 expressed interest in being able to convert an <tt>auto_ptr</tt> to a
17738 <tt>unique_ptr</tt> without the need to call <tt>release</tt>. Below is
17739 wording to accomplish this.
17748 Pete believes it not a good idea to separate parts of a class's definition.
17749 Therefore, if we do this,
17750 it should be part of <tt>unique-ptr</tt>'s specification.
17753 Alisdair believes the lvalue overload may be not necessary.
17756 Marc believes it is more than just sugar,
17757 as it does ease the transition to <tt>unique-ptr</tt>.
17760 We agree with the resolution as presented.
17761 Move to Tentatively Ready.
17771 Moved from Tentatively Ready to Open only because the wording needs to be
17772 tweaked for concepts removal.
17776 2009-08-01 Howard deconceptifies wording:
17781 I also moved the change from D.10 [depr.auto.ptr]
17782 to 20.8.14.2 [unique.ptr.single] per the Editor's request
17783 in Batavia (as long as I was making changes anyway). Set back
17788 2009-10 Santa Cruz:
17798 <p><b>Proposed resolution:</b></p>
17800 Add to 20.8.14.2 [unique.ptr.single]:
17803 <blockquote><pre>template <class T, class D>
17807 <ins> template <class U>
17808 unique_ptr(auto_ptr<U>& u);
17809 template <class U>
17810 unique_ptr(auto_ptr<U>&& u);</ins>
17812 </pre></blockquote>
17815 Add to 20.8.14.2.1 [unique.ptr.single.ctor]:
17818 <blockquote><pre>template <class U>
17819 unique_ptr(auto_ptr<U>& u);
17820 template <class U>
17821 unique_ptr(auto_ptr<U>&& u);
17825 <i>Effects:</i> Constructs a <tt>unique_ptr</tt> with <tt>u.release()</tt>.
17829 <i>Postconditions:</i> <tt>get() == </tt> the value <tt>u.get()</tt> had before
17830 the construciton, modulo any required offset adjustments resulting from the cast from
17831 <tt>U*</tt> to <tt>T*</tt>. <tt>u.get() == nullptr</tt>.
17835 <i>Throws:</i> nothing.
17839 <i>Remarks:</i> <tt>U*</tt> shall be implicitly convertible to <tt>T*</tt> and
17840 <tt>D</tt> shall be the same type as <tt>default_delete<T></tt>, else these
17841 constructors shall not participate in overload resolution.
17852 <h3><a name="1104"></a>1104. <tt>basic_ios::move</tt> should accept lvalues</h3>
17853 <p><b>Section:</b> 27.5.4.2 [basic.ios.members] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
17854 <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-04-25 <b>Last modified:</b> 2009-10-20</p>
17855 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#basic.ios.members">active issues</a> in [basic.ios.members].</p>
17856 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#basic.ios.members">issues</a> in [basic.ios.members].</p>
17857 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
17858 <p><b>Discussion:</b></p>
17860 With the rvalue reference changes in
17861 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2844.html">N2844</a>
17862 <tt>basic_ios::move</tt> no longer has the most convenient signature:
17865 <blockquote><pre>void move(basic_ios&& rhs);
17866 </pre></blockquote>
17869 This signature should be changed to accept lvalues. It does not need to be
17870 overloaded to accept rvalues. This is a special case that only derived clients
17871 will see. The generic <tt>move</tt> still needs to accept rvalues.
17880 Tom prefers, on general principles, to provide both overloads.
17884 Howard points out that there is no backward compatibility issue
17885 as this is new to C++0X.
17888 We agree that both overloads should be provided,
17889 and Howard will provide the additional wording.
17895 2009-05-23 Howard adds:
17900 Added overload, moved to Review.
17914 <p><b>Proposed resolution:</b></p>
17916 Add a signature to the existing prototype in the synopsis of 27.5.4 [ios]
17917 and in 27.5.4.2 [basic.ios.members]:
17920 <blockquote><pre><ins>void move(basic_ios& rhs);</ins>
17921 void move(basic_ios&& rhs);
17922 </pre></blockquote>
17929 <h3><a name="1106"></a>1106. Multiple exceptions from connected <tt>shared_future::get()</tt>?</h3>
17930 <p><b>Section:</b> 30.6.7 [future.shared_future] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
17931 <b>Submitter:</b> Thomas J. Gritzan <b>Opened:</b> 2009-04-03 <b>Last modified:</b> 2009-05-23</p>
17932 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#future.shared_future">issues</a> in [future.shared_future].</p>
17933 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
17934 <p><b>Discussion:</b></p>
17936 It is not clear, if multiple threads are waiting in a
17937 <tt>shared_future::get()</tt> call, if each will rethrow the stored exception.
17943 <i>Throws:</i> the stored exception, if an exception was stored and not
17947 The "not retrieved before" suggests that only one exception is thrown,
17948 but one exception for each call to <tt>get()</tt> is needed, and multiple calls
17949 to <tt>get()</tt> even on the same <tt>shared_future</tt> object seem to be allowed.
17952 I suggest removing "and not retrieved before" from the Throws paragraph.
17953 I recommend adding a note that explains that multiple calls on <tt>get()</tt> are
17954 allowed, and each call would result in an exception if an exception was
17964 We note there is a pending paper by Detlef
17965 on such <tt>future</tt>-related issues;
17966 we would like to wait for his paper before proceeding.
17969 Alisdair suggests we may want language to clarify that this
17970 <tt>get()</tt> function can be called from several threads
17971 with no need for explicit locking.
17979 <p><b>Proposed resolution:</b></p>
17981 Change 30.6.7 [future.shared_future]:
17984 <blockquote><pre>const R& shared_future::get() const;
17985 R& shared_future<R&>::get() const;
17986 void shared_future<void>::get() const;
17991 -9- <i>Throws:</i> the stored exception, if an exception was stored<del> and not retrieved before</del>.
17993 [<i>Note:</i> Multiple calls on <tt>get()</tt> are
17994 allowed, and each call would result in an exception if an exception was
17995 stored. — <i>end note</i>]
18007 <h3><a name="1108"></a>1108. thread.req.exception overly constrains implementations</h3>
18008 <p><b>Section:</b> 30.2.2 [thread.req.exception] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Tentatively Ready</a>
18009 <b>Submitter:</b> Christopher Kohlhoff <b>Opened:</b> 2009-04-25 <b>Last modified:</b> 2009-10-26</p>
18010 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Tentatively%20Ready">Tentatively Ready</a> status.</p>
18011 <p><b>Discussion:</b></p>
18013 The current formulation of 30.2.2 [thread.req.exception]/2 reads:
18016 The error_category of the <tt>error_code</tt> reported by such an
18017 exception's <tt>code()</tt> member function is as specified in the error
18021 This constraint on the code's associated <tt>error_categor</tt> means an
18022 implementation must perform a mapping from the system-generated
18023 error to a <tt>generic_category()</tt> error code. The problems with this
18029 The mapping is always performed, even if the resultant value is
18034 The original error produced by the operating system is lost.
18039 The latter was one of Peter Dimov's main objections (in a private
18040 email discussion) to the original <tt>error_code</tt>-only design, and led to
18041 the creation of <tt>error_condition</tt> in the first place. Specifically,
18042 <tt>error_code</tt> and <tt>error_condition</tt> are intended to perform the following
18047 <tt>error_code</tt> holds the original error produced by the operating
18051 <tt>error_condition</tt> and the generic category provide a set of well
18052 known error constants that error codes may be tested against.
18056 Any mapping determining correspondence of the returned error code to
18057 the conditions listed in the error condition clause falls under the
18058 "latitude" granted to implementors in 19.5.1.5 [syserr.errcat.objects].
18059 (Although obviously their latitude is restricted a little by the
18060 need to match the right error condition when returning an error code
18061 from a library function.)
18064 It is important that this <tt>error_code/error_condition</tt> usage is done
18065 correctly for the thread library since it is likely to set the
18066 pattern for future TR libraries that interact with the operating
18075 Move to Open, and recommend the issue be deferred until after the next
18076 Committee Draft is issued.
18080 2009-10 post-Santa Cruz:
18085 Move to Tentatively Ready.
18090 <p><b>Proposed resolution:</b></p>
18092 Change 30.2.2 [thread.req.exception]/2:
18097 -2- <del>The <tt>error_category</tt> (19.5.1.1) of the <tt>error_code</tt> reported by
18098 such an exception's <tt>code()</tt> member function
18099 is as specified in the error condition Clause.</del>
18101 The <tt>error_code</tt> reported by such an exception's <tt>code()</tt> member
18102 function shall compare equal to one of the conditions specified in
18103 the function's error condition Clause. [<i>Example:</i> When the thread
18107 <blockquote><pre><ins>
18108 ec.category() == implementation-defined // probably system_category
18109 ec == errc::resource_unavailable_try_again // holds true
18110 </ins></pre></blockquote>
18113 — <i>end example</i>]
18124 <h3><a name="1110"></a>1110. Is <tt>for_each</tt> overconstrained?</h3>
18125 <p><b>Section:</b> 25.2.4 [alg.foreach] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
18126 <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-04-29 <b>Last modified:</b> 2009-10-27</p>
18127 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#alg.foreach">issues</a> in [alg.foreach].</p>
18128 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
18129 <p><b>Discussion:</b></p>
18131 Quoting working paper for reference (25.2.4 [alg.foreach]):
18135 <pre>template<InputIterator Iter, Callable<auto, Iter::reference> Function>
18136 requires CopyConstructible<Function>
18137 Function for_each(Iter first, Iter last, Function f);
18141 1 Effects: Applies f to the result of dereferencing every iterator in the
18142 range [first,last), starting from first and proceeding to last - 1.
18148 3 Complexity: Applies f exactly last - first times.
18154 P2 implies the passed object <tt>f</tt> should be invoked at each stage, rather than
18155 some copy of <tt>f</tt>. This is important if the return value is to usefully
18156 accumulate changes. So the requirements are an object of type <tt>Function</tt> can
18157 be passed-by-value, invoked multiple times, and then return by value. In
18158 this case, <tt>MoveConstructible</tt> is sufficient. This would open support for
18159 move-only functors, which might become important in concurrent code as you
18160 can assume there are no other references (copies) of a move-only type and so
18161 freely use them concurrently without additional locks.
18165 See further discussion starting with c++std-lib-23686.
18175 Pete suggests we may want to look at this in a broader context
18176 involving other algorithms.
18177 We should also consider the implications of parallelism.
18180 Move to Open, and recommend the issue be deferred until after the next
18181 Committee Draft is issued.
18186 2009-10-14 Daniel de-conceptified the proposed resolution.
18192 The note in 25.1 [algorithms.general]/9 already says the right thing:
18195 Unless otherwise specified, algorithms that take function objects
18196 as arguments are permitted to copy those function objects freely.
18199 So we only need to ensure that the wording for <tt>for_each</tt> is sufficiently
18200 clear, which is the intend of the following rewording.
18205 2009-10-15 Daniel proposes:
18213 Add a new Requires clause just after the prototype declaration (25.2.4 [alg.foreach]):
18217 <ins><i>Requires:</i> <tt>Function</tt> shall be <tt>MoveConstructible</tt>
18218 ( [moveconstructible]), <tt>CopyConstructible</tt> is not required.</ins>
18224 Change 25.2.4 [alg.foreach]/2 as indicated:
18228 <i>Returns:</i> <ins>std::move(</ins>f<ins>)</ins>.
18235 2009-10 post-Santa Cruz:
18240 Move to Tentatively Ready, using Daniel's wording without the portion
18241 saying "CopyConstructible is not required".
18245 2009-10-27 Daniel adds:
18251 I see that during the Santa Cruz meeting the originally proposed addition
18255 , <tt>CopyConstructible</tt> is not required.
18259 was removed. I don't think that this removal was a good idea. The combination
18260 of 25.1 [algorithms.general]/9
18264 [<i>Note:</i> Unless otherwise specified, algorithms that take function objects
18265 as arguments are permitted to copy those function objects freely.[..]
18269 with the fact that <tt>CopyConstructible</tt> is a refinement <tt>MoveConstructible</tt>
18270 makes it necessary that such an explicit statement is given. Even the
18271 existence of the usage of <tt>std::move</tt> in the <i>Returns</i> clause doesn't
18272 help much, because this would still be well-formed for a <tt>CopyConstructible</tt>
18273 without move constructor. Let me add that the originally proposed
18274 addition reflects current practice in the standard, e.g. 25.3.9 [alg.unique]/5
18275 usages a similar terminology.
18279 For similar wording need in case for auto_ptr see <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#973">973</a>.
18283 Howard: Moved from Tentatively Ready to Open.
18290 <p><b>Proposed resolution:</b></p>
18294 Add a new Requires clause just after the prototype declaration (25.2.4 [alg.foreach]):
18298 <ins><i>Requires:</i> <tt>Function</tt> shall be <tt>MoveConstructible</tt>
18299 ( [moveconstructible]).</ins>
18305 Change 25.2.4 [alg.foreach]/2 as indicated:
18309 <i>Returns:</i> <ins>std::move(</ins>f<ins>)</ins>.
18322 <h3><a name="1112"></a>1112. bitsets and new style for loop</h3>
18323 <p><b>Section:</b> 20.3.7 [template.bitset] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#NAD%20Future">Tentatively NAD Future</a>
18324 <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-05-06 <b>Last modified:</b> 2009-10-26</p>
18325 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#template.bitset">active issues</a> in [template.bitset].</p>
18326 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#template.bitset">issues</a> in [template.bitset].</p>
18327 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Tentatively%20NAD%20Future">Tentatively NAD Future</a> status.</p>
18328 <p><b>Discussion:</b></p>
18330 <tt>Std::bitset</tt> is a homogeneous container-like sequence of bits, yet it does
18331 not model the Range concept so cannot be used with the new for-loop syntax.
18332 It is the only such type in the library that does NOT support the new for
18336 The obvious reason is that bitset does not support iterators.
18339 At least two reasonable solutions are available:
18343 Add an iterator interface to <tt>bitset</tt>, bringing its interface close to that
18344 of <tt>std::array</tt>
18347 Provide an unspecified concept_map for <tt>Range<bitset></tt>.
18351 The latter will still need some kind of iterator-like adapter for <tt>bitset</tt>,
18352 but gives implementers greater freedom on the details. E.g. begin/end return
18353 some type that simply invokes <tt>operator[]</tt> on the object it wraps, and
18354 increments its index on <tt>operator++</tt>. A vendor can settle for <tt>InputIterator</tt>
18355 support, rather than wrapping up a full <tt>RandomAccessIterator</tt>.
18358 I have a mild preference for option (ii) as I think it is less work to
18359 specify at this stage of the process, although (i) is probably more useful
18363 Hmm, my wording looks a little woolly, as it does not say what the element
18364 type of the range is. Do I get a range of <tt>bool</tt>, <tt>bitset<N>::reference</tt>, or
18365 something else entirely?
18368 I guess most users will assume the behaviour of reference, but expect to
18369 work with <tt>bool</tt>. <tt>Bool</tt> is OK for read-only traversal, but you really need to
18370 take a reference to a <tt>bitset::reference</tt> if you want to write back.
18379 We further recommend this be deferred until after the next Committee Draft.
18383 2009-05-25 Alisdair adds:
18389 I just stumbled over the <tt>Range concept_map</tt> for <tt>valarray</tt> and this should
18390 probably set the precedent on how to write the wording.
18394 Howard: I've replaced the proposed wording with Alisdair's suggestion.
18401 2009-07-24 Daniel modifies the proposed wording for non-concepts.
18406 2009-10 post-Santa Cruz:
18411 Mark as Tentatively NAD Future due to the loss of concepts.
18416 <p><b>Proposed resolution:</b></p>
18420 Modify the section 20.3.7 [template.bitset] <tt><bitset></tt> synopsis by adding
18421 the following at the end of the synopsis:
18423 <blockquote><pre><ins>
18424 // XX.X.X bitset range access [bitset.range]
18425 template<size_t N> <i>unspecified-1</i> begin(bitset<N>&);
18426 template<size_t N> <i>unspecified-2</i> begin(const bitset<N>&);
18427 template<size_t N> <i>unspecified-1</i> end(bitset<N>&);
18428 template<size_t N> <i>unspecified-2</i> end(const bitset<N>&);
18430 </pre></blockquote>
18434 Add a new section <ins>"bitset range access" [bitset.range]</ins>
18435 after the current section 20.3.7.3 [bitset.operators] with the following series of
18441 1. In the <tt>begin</tt> and <tt>end</tt> function templates that follow, <i>unspecified-1</i>
18442 is a type that meets the requirements of a mutable random access
18443 iterator (24.2.5 [random.access.iterators]) whose <tt>value_type</tt> is <tt>bool</tt> and
18444 whose reference type is <tt>bitset<N>::reference</tt>.
18445 <i>unspecified-2</i> is a type that meets the requirements of a constant
18446 random access iterator (24.2.5 [random.access.iterators]) whose <tt>value_type</tt>
18447 is <tt>bool</tt> and whose reference type is <tt>bool</tt>.
18451 template<size_t N> <i>unspecified-1</i> begin(bitset<N>&);
18452 template<size_t N> <i>unspecified-2</i> begin(const bitset<N>&);
18456 <ins>2. Returns: an iterator referencing the first bit in the bitset.</ins>
18460 template<size_t N> <i>unspecified-1</i> end(bitset<N>&);
18461 template<size_t N> <i>unspecified-2</i> end(const bitset<N>&);
18465 <ins>3. Returns: an iterator referencing one past the last bit in the
18484 <h3><a name="1113"></a>1113. <tt>bitset::to_string</tt> could be simplified</h3>
18485 <p><b>Section:</b> 20.3.7 [template.bitset] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Tentatively Ready</a>
18486 <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-05-09 <b>Last modified:</b> 2009-10-26</p>
18487 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#template.bitset">active issues</a> in [template.bitset].</p>
18488 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#template.bitset">issues</a> in [template.bitset].</p>
18489 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Tentatively%20Ready">Tentatively Ready</a> status.</p>
18490 <p><b>Discussion:</b></p>
18492 In <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#853">853</a> our resolution is changing the signature by adding two
18493 defaulting arguments to 3 calls. In principle, this means that ABI breakage
18494 is not an issue, while API is preserved.
18497 With that observation, it would be very nice to use the new ability to
18498 supply default template parameters to function templates to collapse all 3
18499 signatures into 1. In that spirit, this issue offers an alternative resolution
18500 than that of <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#853">853</a>.
18509 and look at the issue again after <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#853">853</a> has been accepted.
18510 We further recommend this be deferred until after the next Committee Draft.
18514 2009-10 post-Santa Cruz:
18519 Move to Tentatively Ready.
18524 <p><b>Proposed resolution:</b></p>
18529 In 20.3.7 [template.bitset]/1 (class bitset) ammend:
18531 <blockquote><pre>template <class charT <ins>= char</ins>,
18532 class traits <ins>= char_traits<charT></ins>,
18533 class Allocator <ins>= allocator<charT></ins>>
18534 basic_string<charT, traits, Allocator>
18535 to_string(charT zero = charT('0'), charT one = charT('1')) const;
18536 <del>template <class charT, class traits>
18537 basic_string<charT, traits, allocator<charT> > to_string() const;
18538 template <class charT>
18539 basic_string<charT, char_traits<charT>, allocator<charT> > to_string() const;
18540 basic_string<char, char_traits<char>, allocator<char> > to_string() const;</del>
18541 </pre></blockquote>
18545 In 20.3.7.2 [bitset.members] prior to p35 ammend:
18547 <blockquote><pre>template <class charT <ins>= char</ins>,
18548 class traits <ins>= char_traits<charT></ins>,
18549 class Allocator <ins>= allocator<charT></ins>>
18550 basic_string<charT, traits, Allocator>
18551 to_string(charT zero = charT('0'), charT one = charT('1')) const;
18552 </pre></blockquote>
18555 Strike 20.3.7.2 [bitset.members] paragraphs 37 -> 39 (including signature
18566 <h3><a name="1114"></a>1114. Type traits underspecified</h3>
18567 <p><b>Section:</b> 20.6 [meta] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Tentatively Ready</a>
18568 <b>Submitter:</b> Daniel Krügler <b>Opened:</b> 2009-05-12 <b>Last modified:</b> 2009-10-26</p>
18569 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#meta">issues</a> in [meta].</p>
18570 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Tentatively%20Ready">Tentatively Ready</a> status.</p>
18571 <p><b>Discussion:</b></p>
18574 Related to <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#975">975</a> and <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1023">1023</a>.
18578 The current wording in 20.6.1 [meta.rqmts] is still unclear concerning
18579 it's requirements on the type traits classes regarding ambiguities.
18580 Specifically it's unclear
18585 if a predicate trait (20.6.4 [meta.unary], 20.6.5 [meta.rel]) could derive from both
18586 <tt>true_type</tt>/<tt>false_type</tt>.
18589 if any of the type traits (20.6.1 [meta.rqmts], 20.6.4 [meta.unary], 20.6.5 [meta.rel]) could ambiguously derive
18590 from the same specified result type.
18593 if any of the type traits (20.6.1 [meta.rqmts], 20.6.4 [meta.unary], 20.6.5 [meta.rel]) could derive from other
18594 <tt>integral_constant</tt> types making the contained names ambiguous
18597 if any of the type traits (20.6.1 [meta.rqmts], 20.6.4 [meta.unary], 20.6.5 [meta.rel]) could have other base
18598 classes that contain members hiding the name of the result type members
18599 or make the contained member names ambiguous.
18609 Alisdair would prefer to factor some of the repeated text,
18610 but modulo a corner case or two,
18611 he believes the proposed wording is otherwise substantially correct.
18619 2009-10 post-Santa Cruz:
18624 Move to Tentatively Ready.
18629 <p><b>Proposed resolution:</b></p>
18631 The usage of the notion of a <i>BaseCharacteristic</i> below
18633 useful in other places - e.g. to define the base class relation in
18634 20.7.5 [refwrap], 20.7.14 [func.memfn], or 20.7.15.2 [func.wrap.func].
18635 In this case it's definition should probably
18636 be moved to Clause 17
18643 Change 20.6.1 [meta.rqmts]/1 as indicated:
18646 [..] It shall be <tt>DefaultConstructible</tt>, <tt>CopyConstructible</tt>, and publicly
18647 <ins>and unambiguously</ins> derived, directly or indirectly, from
18648 <ins>its <i>BaseCharacteristic</i>, which is</ins> a specialization of the
18649 template <tt>integral_constant</tt> (20.6.3), with the arguments to the template
18650 <tt>integral_constant</tt> determined by the requirements for the particular
18651 property being described. <ins>The member names of the
18652 <i>BaseCharacteristic</i> shall be unhidden and unambiguously
18653 available in the <i>UnaryTypeTrait</i>.</ins>
18658 Change 20.6.1 [meta.rqmts]/2 as indicated:
18661 [..] It shall be <tt>DefaultConstructible</tt>, <tt>CopyConstructible</tt>, and publicly
18662 <ins>and unambiguously</ins> derived, directly or indirectly, from
18663 <del>an instance</del> <ins>its <i>BaseCharacteristic</i>, which is a
18664 specialization</ins> of the template <tt>integral_constant</tt> (20.6.3), with
18665 the arguments to the template <tt>integral_constant</tt> determined by the
18666 requirements for the particular relationship being described. <ins>The
18667 member names of the <i>BaseCharacteristic</i> shall be unhidden
18668 and unambiguously available in the <i>BinaryTypeTrait</i>.</ins>
18673 Change 20.6.4 [meta.unary]/2 as indicated:
18676 Each of these templates shall be a <i>UnaryTypeTrait</i> (20.6.1),
18677 <del>publicly derived directly or indirectly from <tt>true_type</tt> if the
18678 corresponding condition is true, otherwise from <tt>false_type</tt></del>
18679 <ins>where its <i>BaseCharacteristic</i> shall be <tt>true_type</tt> if the
18680 corresponding condition is true, otherwise <tt>false_type</tt></ins>.
18685 Change 20.6.5 [meta.rel]/2 as indicated:
18689 Each of these templates shall be a <i>BinaryTypeTrait</i> (20.6.1),
18690 <del>publicly derived directly or indirectly from <tt>true_type</tt> if the
18691 corresponding condition is true, otherwise from <tt>false_type</tt></del>
18692 <ins>where its <i>BaseCharacteristic</i> shall be <tt>true_type</tt> if the
18693 corresponding condition is true, otherwise <tt>false_type</tt></ins>.
18704 <h3><a name="1115"></a>1115. <tt>va_copy</tt> missing from Standard macros table</h3>
18705 <p><b>Section:</b> C.2 [diff.library] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#NAD%20Editorial">Tentatively NAD Editorial</a>
18706 <b>Submitter:</b> Miles Zhao <b>Opened:</b> 2009-05-23 <b>Last modified:</b> 2009-10-26</p>
18707 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#diff.library">issues</a> in [diff.library].</p>
18708 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Tentatively%20NAD%20Editorial">Tentatively NAD Editorial</a> status.</p>
18709 <p><b>Discussion:</b></p>
18711 In "Table 122 -- Standard macros" of C.2 [diff.library], which lists the 56 macros
18712 inherited from C library, <tt>va_copy</tt> seems to be missing. But in
18713 "Table 21 -- Header <tt><cstdarg></tt> synopsis" (18.10 [support.runtime]), there is.
18717 2009-10 post-Santa Cruz:
18722 Mark as Tentatively NAD Editorial, if Pete disagrees, Howard
18723 will move to Tentatively Ready
18728 <p><b>Proposed resolution:</b></p>
18730 Add <tt>va_copy</tt> to Table 122 -- Standard macros in C.2 [diff.library].
18738 <h3><a name="1118"></a>1118. tuple query APIs do not support cv-qualification</h3>
18739 <p><b>Section:</b> 20.5.2.5 [tuple.helper] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
18740 <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-05-23 <b>Last modified:</b> 2009-10-26</p>
18741 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#tuple.helper">active issues</a> in [tuple.helper].</p>
18742 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#tuple.helper">issues</a> in [tuple.helper].</p>
18743 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
18744 <p><b>Discussion:</b></p>
18746 The APIs <tt>tuple_size</tt> and <tt>tuple_element</tt> do not support
18747 cv-qualified <tt>tuple</tt>s, <tt>pair</tt>s or <tt>array</tt>s.
18750 The most generic solution would be to supply partial specializations once
18751 for each cv-type in the <tt>tuple</tt> header. However, requiring this header for
18752 cv-qualified <tt>pair</tt>s/<tt>array</tt>s seems unhelpful. The BSI editorial
18753 suggestion (UK-198/US-69,
18754 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2533.html">N2533</a>)
18755 to merge <tt>tuple</tt> into <tt><utility></tt> would help with <tt>pair</tt>,
18756 but not <tt>array</tt>. That might be resolved by making a dependency between the
18757 <tt><array></tt> header and <tt><utility></tt>, or simply recognising
18758 the dependency be fulfilled in a Remark.
18762 2009-05-24 Daniel adds:
18768 All <tt>tuple_size</tt> templates with a base class need to derive publicly, e.g.
18771 <blockquote><pre>template <IdentityOf T> class tuple_size< const T > :
18772 <ins>public</ins> tuple_size<T> {};
18773 </pre></blockquote>
18776 The same applies to the tuple_element class hierarchies.
18779 What is actually meant with the comment
18782 this solution relies on 'metafunction forwarding' to inherit the
18783 nested typename type
18789 I ask, because all base classes are currently unconstrained and their
18790 instantiation is invalid in the constrained context of the <tt>tuple_element</tt> partial
18791 template specializations.
18796 2009-05-24 Alisdair adds:
18802 I think a better solution might be to ask Pete editorially to change all
18803 declarations of tupling APIs to use the struct specifier instead of class.
18806 "metafunction forwarding" refers to the MPL metafunction protocol, where a
18807 metafunction result is declared as a nested typedef with the name "type",
18808 allowing metafunctions to be chained by means of inheritance. It is a
18809 neater syntax than repeatedly declaring a typedef, and inheritance syntax is
18810 slightly nicer when it comes to additional typename keywords.
18813 The constrained template with an unconstrained base is a good observation
18819 2009-10 post-Santa Cruz:
18824 Move to Open, Alisdair to provide wording. Once wording is
18825 provided, Howard will move to Review.
18830 <p><b>Proposed resolution:</b></p>
18832 Add to 20.5.1 [tuple.general] p2 (Header <tt><tuple></tt> synopsis)
18835 <blockquote><pre>// 20.5.2.3, tuple helper classes:
18836 template <IdentityOf T> class tuple_size; // undefined
18837 <ins>template <IdentityOf T> class tuple_size< const T > : tuple_size<T> {};</ins>
18838 <ins>template <IdentityOf T> class tuple_size< volatile T > : tuple_size<T> {};</ins>
18839 <ins>template <IdentityOf T> class tuple_size< const volatile T > : tuple_size<T> {};</ins>
18841 template <VariableType... Types> class tuple_size<tuple<Types...> >;
18843 template <size_t I, IdentityOf T> class tuple_element; // undefined
18844 <ins>template <size_t I, IdentityOf T> class tuple_element<I, const T>;</ins>
18845 <ins>template <size_t I, IdentityOf T> class tuple_element<I, volatile T>;</ins>
18846 <ins>template <size_t I, IdentityOf T> class tuple_element<I, const volatile T>;</ins>
18848 template <size_t I, VariableType... Types>
18849 requires True<(I < sizeof...(Types))> class tuple_element<I, tuple<Types...> >;
18850 </pre></blockquote>
18853 Add to 20.5.2.5 [tuple.helper]
18856 (note that this solution relies on 'metafunction forwarding' to inherit the
18857 nested typename type)
18861 <blockquote><pre>template <class... Types>
18862 class tuple_size<tuple<Types...> >
18863 : public integral_constant<size_t, sizeof...(Types)> { };
18865 template <size_t I, class... Types>
18866 requires True<(I < sizeof...(Types))>
18867 class tuple_element<I, tuple<Types...> > {
18872 <ins>template <size_t I, IdentityOf T>
18873 class tuple_element<I, const T> : add_const<tuple_element<I,T>> {};</ins>
18875 <ins>template <size_t I, IdentityOf T>
18876 class tuple_element<I, volatile T> : add_volatile<tuple_element<I,T>> {};</ins>
18878 <ins>template <size_t I, IdentityOf T>
18879 class tuple_element<I, const volatile T> : add_cv<tuple_element<I,T>> {};</ins>
18880 </pre></blockquote>
18887 <h3><a name="1119"></a>1119. tuple query APIs do not support references</h3>
18888 <p><b>Section:</b> 20.5.2.5 [tuple.helper] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
18889 <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-05-23 <b>Last modified:</b> 2009-10-26</p>
18890 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#tuple.helper">active issues</a> in [tuple.helper].</p>
18891 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#tuple.helper">issues</a> in [tuple.helper].</p>
18892 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
18893 <p><b>Discussion:</b></p>
18895 The <tt>tuple</tt> query APIs <tt>tuple_size</tt> and
18896 <tt>tuple_element</tt> do not support references-to-tuples. This can be
18897 annoying when a template deduced a parameter type to be a reference,
18898 which must be explicitly stripped with <tt>remove_reference</tt> before calling
18902 I am not proposing a resolution at this point, as there is a
18903 combinatorial explosion with lvalue/rvalue references and
18904 cv-qualification (see previous issue) that suggests some higher
18905 refactoring is in order. This might be something to kick back over to
18909 Note that we have the same problem in numeric_limits.
18913 2009-10 post-Santa Cruz:
18918 Move to Open. Alisdair to provide wording.
18923 <p><b>Proposed resolution:</b></p>
18930 <h3><a name="1121"></a>1121. Support for multiple arguments</h3>
18931 <p><b>Section:</b> 20.4.2 [ratio.arithmetic] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#NAD%20Future">Tentatively NAD Future</a>
18932 <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-05-25 <b>Last modified:</b> 2009-11-02</p>
18933 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#ratio.arithmetic">issues</a> in [ratio.arithmetic].</p>
18934 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Tentatively%20NAD%20Future">Tentatively NAD Future</a> status.</p>
18935 <p><b>Discussion:</b></p>
18937 Both add and multiply could sensibly be called with more than two arguments.
18938 The variadic template facility makes such declarations simple, and is likely
18939 to be frequently wrapped by end users if we do not supply the variant
18943 We deliberately ignore divide at this point as it is not transitive.
18944 Likewise, subtract places special meaning on the first argument so I do not
18945 suggest extending that immediately. Both could be supported with analogous
18946 wording to that for add/multiply below.
18949 Note that the proposed resolution is potentially incompatible with that
18950 proposed for <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#921">921</a>, although the addition of the typedef to ratio would be
18955 2009-10-30 Alisdair adds:
18961 The consensus of the group when we reviewed this in Santa Cruz was that
18962 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#921">921</a> would proceed to Ready as planned, and the
18963 multi-paramater add/multiply templates should be renamed as
18964 <tt>ratio_sum</tt> and <tt>ratio_product</tt> to avoid the problem
18965 mixing template aliases with partial specializations.
18969 It was also suggested to close this issue as NAD Future as it does not
18970 correspond directly to any NB comment. NBs are free to submit a
18971 specific comment (and re-open) in CD2 though.
18975 Walter Brown also had concerns on better directing the order of
18976 evaluation to avoid overflows if we do proceed for 0x rather than TR1,
18977 so wording may not be complete yet.
18981 Alisdair updates wording.
18993 Moved to Tentatively NAD Future after 5 positive votes on c++std-lib.
18998 <p><b>Proposed resolution:</b></p>
19001 Add the following type traits to p3 20.4 [ratio]
19004 <blockquote><pre>// ratio arithmetic
19005 template <class R1, class R2> struct ratio_add;
19006 template <class R1, class R2> struct ratio_subtract;
19007 template <class R1, class R2> struct ratio_multiply;
19008 template <class R1, class R2> struct ratio_divide;
19009 <ins>template <class R1, class ... RList> struct ratio_sum;</ins>
19010 <ins>template <class R1, class ... RList> struct ratio_product;</ins>
19011 </pre></blockquote>
19014 after 20.4.2 [ratio.arithmetic] p1: add
19017 <blockquote><pre>template <class R1, class ... RList> struct ratio_sum; // declared, never defined
19019 template <class R1> struct ratio_sum<R1> : R1 {};
19023 <i>Requires:</i> <tt>R1</tt> is a specialization of class template <tt>ratio</tt>
19026 <pre>template <class R1, class R2, class ... RList>
19027 struct ratio_sum<R1, R2, RList...>
19028 : ratio_add< R1, ratio_sum<R2, RList...>> {
19033 <i>Requires:</i> <tt>R1</tt> and each element in parmater pack
19034 <tt>RList</tt> is a specialization of class template <tt>ratio</tt>
19039 after 20.4.2 [ratio.arithmetic] p3: add
19042 <blockquote><pre>template <class R1, class ... RList> struct ratio_product; // declared, never defined
19044 template <class R1> struct ratio_product<R1> : R1 {};
19048 <i>Requires:</i> <tt>R1</tt> is a specialization of class template <tt>ratio</tt>
19051 <pre>template <class R1, class R2, class ... RList>
19052 struct ratio_sum<R1, R2, RList...>
19053 : ratio_add< R1, ratio_product<R2, RList...>> {
19058 <i>Requires:</i> <tt>R1</tt> and each element in parmater pack
19059 <tt>RList</tt> is a specialization of class template <tt>ratio</tt>
19071 <h3><a name="1123"></a>1123. no requirement that standard streams be flushed</h3>
19072 <p><b>Section:</b> 27.5.2.1.6 [ios::Init] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
19073 <b>Submitter:</b> James Kanze <b>Opened:</b> 2009-05-14 <b>Last modified:</b> 2009-10-20</p>
19074 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#ios::Init">issues</a> in [ios::Init].</p>
19075 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
19076 <p><b>Discussion:</b></p>
19078 As currently formulated, the standard doesn't require that there
19079 is ever a flush of <tt>cout</tt>, etc. (This implies, for example, that
19080 the classical hello, world program may have no output.) In the
19082 (<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2798.pdf">N2798</a>),
19083 there is a requirement that the objects
19084 be constructed before <tt>main</tt>, and before the dynamic
19085 initialization of any non-local objects defined after the
19086 inclusion of <tt><iostream></tt> in the same translation unit. The only
19087 requirement that I can find concerning flushing, however, is in
19088 27.5.2.1.6 [ios::Init], where the destructor of the last
19089 <tt>std::ios_base::Init</tt> object flushes. But there is, as far as I
19090 can see, no guarantee that such an object ever exists.
19093 Also, the wording in [iostreams.objects] says that:
19097 are constructed and the associations are established at some
19098 time prior to or during the first time an object of class
19099 <tt>ios_base::Init</tt> is constructed, and in any case before the body
19100 of main begins execution.
19103 In 27.5.2.1.6 [ios::Init], however, as an
19104 effect of the constructor, it says that
19107 If <tt>init_cnt</tt> is zero,
19108 the function stores the value one in <tt>init_cnt</tt>, then constructs
19109 and initializes the objects <tt>cin</tt>, <tt>cout</tt>, <tt>cerr</tt>, <tt>clog</tt>
19110 <tt>wcin</tt>, <tt>wcout</tt>, <tt>wcerr</tt>, and <tt>wclog</tt>"
19114 which seems to forbid earlier
19119 (Note that with these changes, the exposition only "<tt>static
19120 int init_cnt</tt>" in <tt>ios_base::Init</tt> can be dropped.)
19123 Of course, a determined programmer can still inhibit the
19124 flush with things like:
19126 <blockquote><pre>new std::ios_base::Init ; // never deleted
19127 </pre></blockquote>
19129 or (in a function):
19131 <blockquote><pre>std::ios_base::Init ensureConstruction ;
19133 exit( EXIT_SUCCESS ) ;
19134 </pre></blockquote>
19136 Perhaps some words somewhere to the effect that all
19137 <tt>std::ios_base::Init</tt> objects should have static lifetime
19147 Moved to Ready. Some editorial changes are expected (in addition to the
19148 proposed wording) to remove <tt>init_cnt</tt> from <tt>Init</tt>.
19153 <p><b>Proposed resolution:</b></p>
19155 Change 27.4 [iostream.objects]/2:
19159 -2- The objects are constructed and the associations are established at
19160 some time prior to or during the first time an object of class
19161 <tt>ios_base::Init</tt> is constructed, and in any case before the body
19162 of main begins execution.<sup>292</sup> The objects are not destroyed
19163 during program execution.<sup>293</sup>
19164 <del>If a translation unit includes
19165 <tt><iostream></tt> or explicitly constructs an
19166 <tt>ios_base::Init</tt> object, these stream objects shall be
19167 constructed before dynamic initialization of non-local objects defined
19168 later in that translation unit.</del>
19169 <ins>The results of including <tt><iostream></tt> in a translation
19170 unit shall be as if <tt><iostream></tt> defined an instance of
19171 <tt>ios_base::Init</tt> with static lifetime. Similarly, the entire
19172 program shall behave as if there were at least one instance of
19173 <tt>ios_base::Init</tt> with static lifetime.</ins>
19177 Change 27.5.2.1.6 [ios::Init]/3:
19184 -3- <i>Effects:</i> Constructs an object of class <tt>Init</tt>.
19185 <del>If <tt>init_cnt</tt> is zero, the function stores the value one in
19186 <tt>init_cnt</tt>, then constructs and initializes the objects
19187 <tt>cin</tt>, <tt>cout</tt>, <tt>cerr</tt>, <tt>clog</tt> (27.4.1),
19188 <tt>wcin</tt>, <tt>wcout</tt>, <tt>wcerr</tt>, and <tt>wclog</tt>
19189 (27.4.2). In any case, the function then adds one to the value stored in
19190 <tt>init_cnt</tt>.</del>
19191 <ins>Constructs and initializes the objects <tt>cin</tt>, <tt>cout</tt>,
19192 <tt>cerr</tt>, <tt>clog</tt>, <tt>wcin</tt>, <tt>wcout</tt>,
19193 <tt>wcerr</tt> and <tt>wclog</tt> if they have not already been
19194 constructed and initialized.</ins>
19199 Change 27.5.2.1.6 [ios::Init]/4:
19206 -4- <i>Effects:</i> Destroys an object of class <tt>Init</tt>.
19207 <del>The function subtracts one from the value stored in <tt>init_cnt</tt> and,
19208 if the resulting stored value is one,</del>
19209 <ins>If there are no other instances of the class still in
19211 calls <tt>cout.flush()</tt>,
19212 <tt>cerr.flush()</tt>, <tt>clog.flush()</tt>, <tt>wcout.flush()</tt>,
19213 <tt>wcerr.flush()</tt>, <tt>wclog.flush()</tt>.
19223 <h3><a name="1125"></a>1125. ostream_iterator does not work with movable types</h3>
19224 <p><b>Section:</b> 24.6.2.2 [ostream.iterator.ops] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
19225 <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-05-28 <b>Last modified:</b> 2009-05-30</p>
19226 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
19227 <p><b>Discussion:</b></p>
19229 <tt>ostream_iterator</tt> has not been updated to support moveable types, in a
19230 similar manner to the insert iterators.
19231 Note that this is not a problem for <tt>ostreambuf_iterator</tt>, as the types it is
19232 restricted to dealing with do not support extra-efficient moving.
19236 <p><b>Proposed resolution:</b></p>
19238 Add second <tt>operator=</tt> overload to class <tt>template ostream_iterator</tt>
19239 in 24.6.2 [ostream.iterator], para 2:
19242 <blockquote><pre>ostream_iterator<T,charT,traits>& operator=(const T& value);
19243 <ins>ostream_iterator<T,charT,traits>& operator=(T&& value);</ins>
19244 </pre></blockquote>
19247 Add a new paragraph: in 24.6.2.2 [ostream.iterator.ops]:
19251 <pre>ostream_iterator& operator=(T&& value);
19255 -2- <i>Effects:</i>
19257 <blockquote><pre>*out_stream << std::move(value);
19259 *out_stream << delim;
19261 </pre></blockquote>
19271 <h3><a name="1126"></a>1126. <tt>istreambuff_iterator::equal</tt> needs a const & parameter</h3>
19272 <p><b>Section:</b> 24.6.3.5 [istreambuf.iterator::equal] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Tentatively Ready</a>
19273 <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-05-28 <b>Last modified:</b> 2009-11-02</p>
19274 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#istreambuf.iterator::equal">issues</a> in [istreambuf.iterator::equal].</p>
19275 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Tentatively%20Ready">Tentatively Ready</a> status.</p>
19276 <p><b>Discussion:</b></p>
19278 The <tt>equal</tt> member function of <tt>istreambuf_iterator</tt> is
19279 declared <tt>const</tt>, but takes its argument by non-const reference.
19282 This is not compatible with the <tt>operator==</tt> free function overload, which is
19283 defined in terms of calling <tt>equal</tt> yet takes both arguments by reference to
19288 The proposed wording is consistent with <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#110">110</a> with status TC1.
19293 2009-11-02 Howard adds:
19298 Set to Tentatively Ready after 5 positive votes on c++std-lib.
19303 <p><b>Proposed resolution:</b></p>
19305 Ammend in both:<br>
19306 24.6.3 [istreambuf.iterator]<br>
19307 24.6.3.5 [istreambuf.iterator::equal]<br>
19310 <blockquote><pre>bool equal(<ins>const </ins>istreambuf_iterator& b) const;
19311 </pre></blockquote>
19319 <h3><a name="1130"></a>1130. <tt>copy_exception</tt> name misleading</h3>
19320 <p><b>Section:</b> 18.8.5 [propagation] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Review">Review</a>
19321 <b>Submitter:</b> Peter Dimov <b>Opened:</b> 2009-05-13 <b>Last modified:</b> 2009-10-20</p>
19322 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#propagation">active issues</a> in [propagation].</p>
19323 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#propagation">issues</a> in [propagation].</p>
19324 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Review">Review</a> status.</p>
19325 <p><b>Discussion:</b></p>
19327 The naming of <tt>std::copy_exception</tt> misleads almost everyone
19328 (experts included!) to think that it is the function that copies an
19329 <tt>exception_ptr</tt>:
19332 <blockquote><pre>exception_ptr p1 = current_exception();
19333 exception_ptr p2 = copy_exception( p1 );
19334 </pre></blockquote>
19337 But this is not at all what it does. The above actually creates an
19338 <tt>exception_ptr p2</tt> that contains a copy of <tt>p1</tt>, not of
19339 the exception to which <tt>p1</tt> refers!
19342 This is, of course, all my fault; in my defence, I used <tt>copy_exception</tt>
19343 because I was unable to think of a better name.
19346 But I believe that, based on what we've seen so far, <em>any</em> other name would be better.
19349 Therefore, I propose <tt>copy_exception</tt> to be renamed to
19350 <tt>create_exception</tt>:
19353 <blockquote><pre>template<class E> exception_ptr create_exception(E e);
19354 </pre></blockquote>
19357 with the following explanatory paragraph after it:
19361 Creates an <tt>exception_ptr</tt> that refers to a copy of <tt>e</tt>.
19365 2009-05-13 Daniel adds:
19373 <blockquote><pre>make_exception_ptr
19374 </pre></blockquote>
19376 in similarity to <tt>make_pair</tt> and <tt>make_tuple</tt>, <tt>make_error_code</tt> and
19377 <tt>make_error_condition</tt>, or <tt>make_shared</tt>? Or, if a stronger symmetry to
19378 <tt>current_exception</tt> is preferred:
19381 <blockquote><pre>make_exception
19382 </pre></blockquote>
19384 We have not a single <tt>create_*</tt> function in the library, it was always
19385 <tt>make_*</tt> used.
19390 2009-05-13 Peter adds:
19395 <tt>make_exception_ptr</tt> works for me.
19399 2009-06-02 Thomas J. Gritzan adds:
19405 To avoid surprises and unwanted recursion, how about making a call to
19406 <tt>std::make_exception_ptr</tt> with an <tt>exception_ptr</tt> illegal?
19409 It might work like this:
19411 <blockquote><pre>template<class E>
19412 exception_ptr make_exception_ptr(E e);
19414 exception_ptr make_exception_ptr<exception_ptr>(exception_ptr e) = delete;
19415 </pre></blockquote>
19424 Move to Review for the time being. The subgroup thinks this is a good
19425 idea, but doesn't want to break compatibility unnecessarily if someone
19426 is already shipping this. Let's talk to Benjamin and PJP tomorrow to
19427 make sure neither objects.
19432 <p><b>Proposed resolution:</b></p>
19434 Change 18.8.5 [propagation]:
19438 <pre>template<class E> exception_ptr <del>copy_exception</del><ins>make_exception_ptr</ins>(E e);
19443 -11- <i>Effects:</i> <ins>Creates an <tt>exception_ptr</tt> that refers
19444 to a copy of <tt>e</tt>,</ins> as if
19447 <blockquote><pre>try {
19450 return current_exception();
19452 </pre></blockquote>
19465 <h3><a name="1131"></a>1131. C++0x does not need <tt>alignment_of</tt></h3>
19466 <p><b>Section:</b> 20.6.4.3 [meta.unary.prop] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
19467 <b>Submitter:</b> Niels Dekker <b>Opened:</b> 2009-06-01 <b>Last modified:</b> 2009-06-02</p>
19468 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#meta.unary.prop">active issues</a> in [meta.unary.prop].</p>
19469 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#meta.unary.prop">issues</a> in [meta.unary.prop].</p>
19470 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
19471 <p><b>Discussion:</b></p>
19473 The <tt>alignment_of</tt> template is no longer necessary, now that the
19474 core language will provide <tt>alignof</tt>. Scott Meyers raised this
19475 issue at comp.std.c++,
19476 <a href="http://groups.google.com/group/comp.std.c++/browse_thread/thread/9b020306e803f08a">C++0x: alignof vs. alignment_of</a>,
19477 May 21, 2009. In a reply, Daniel Krügler pointed out that
19478 <tt>alignof</tt> was added to the working paper <i>after</i>
19479 <tt>alignment_of</tt>. So it appears that <tt>alignment_of</tt> is only
19480 part of the current Working Draft
19481 (<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2857.pdf">N2857</a>)
19482 because it is in TR1.
19485 Having both <tt>alignof</tt> and <tt>alignment_of</tt> would cause
19486 unwanted confusion. In general, I think TR1 functionality should not be
19487 brought into C++0x if it is entirely redundant with other C++0x language
19488 or library features.
19492 <p><b>Proposed resolution:</b></p>
19494 Remove from Header <type_traits> synopsis 20.6.2 [meta.type.synop]:
19496 <blockquote><pre><del>template <class T> struct alignment_of;</del>
19497 </pre></blockquote>
19500 Remove the first row of Table 34 ("Type property queries"), from
19501 Type properties 20.6.4.3 [meta.unary.prop]:
19505 <caption>Table 34 -- Type property queries</caption>
19507 <td><del><tt>template <class T> struct alignment_of;</tt></del></td>
19508 <td><del><tt>alignof(T)</tt>.</del><br>
19509 <del><i>Precondition:</i> <tt>T</tt> shall be a complete type, a reference
19510 type, or an array of unknown bound, but shall not be a function type or
19511 (possibly cv-qualified) <tt>void</tt>.</del>
19518 Change text in Table 41 ("Other transformations"), from Other
19519 transformations 20.6.7 [meta.trans.other], as follows:
19523 <caption>Table 41 -- Other transformations</caption>
19524 <tbody><tr><td>...</td>
19526 Align shall be equal to <tt>
19527 <del>alignment_of<T>::value</del>
19528 <ins>alignof(T)</ins>
19529 </tt> for some type <tt>T</tt> or to <i>default-alignment</i>.
19532 </tr></tbody></table>
19540 <h3><a name="1133"></a>1133. Does N2844 break current specification of list::splice?</h3>
19541 <p><b>Section:</b> 23.3.3.5 [forwardlist.ops], 23.3.4.4 [list.ops] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
19542 <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-05-09 <b>Last modified:</b> 2009-10-27</p>
19543 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#forwardlist.ops">issues</a> in [forwardlist.ops].</p>
19544 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
19545 <p><b>Discussion:</b></p>
19548 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2844.html">N2844</a>
19549 means that lvalues will no longer bind to rvalue references.
19550 Therefore, the current specification of <tt>list::splice</tt> (list
19551 operations 23.3.4.4 [list.ops]) will be a breaking change of behaviour for existing
19552 programs. That is because we changed the signature to swallow via an rvalue
19553 reference rather than the lvalue reference used in 03.
19556 Retaining this form would be safer, requiring an explicit move when splicing
19557 from lvalues. However, this will break existing programs.
19558 We have the same problem with <tt>forward_list</tt>, although without the risk of
19559 breaking programs so here it might be viewed as a positive feature.
19562 The problem signatures:
19564 <blockquote><pre>void splice_after(const_iterator position, forward_list<T,Alloc>&& x);
19565 void splice_after(const_iterator position, forward_list<T,Alloc>&& x,
19567 void splice_after(const_iterator position, forward_list<T,Alloc>&& x,
19568 const_iterator first, const_iterator last);
19570 void splice(const_iterator position, list<T,Alloc>&& x);
19571 void splice(const_iterator position, list<T,Alloc>&& x,
19573 void splice(const_iterator position, list<T,Alloc>&& x,
19574 const_iterator first, const_iterator last);
19575 </pre></blockquote>
19577 <b>Possible resolutions:</b>
19580 Option A. Add an additional (non-const) lvalue-reference
19581 overload in each case
19584 Option B. Change rvalue reference back to (non-const)
19585 lvalue-reference overload in each case
19588 Option C. Add an additional (non-const) lvalue-reference
19589 overload in just the <tt>std::list</tt> cases
19592 I think (B) would be very unfortunate, I really like the <tt>forward_list</tt>
19593 behaviour in (C) but feel (A) is needed for consistency.
19596 My actual preference would be NAD, ship with this as a breaking change as it
19597 is a more explicit interface. I don't think that will fly though!
19601 See the thread starting with c++std-lib-23725 for more discussion.
19605 2009-10-27 Christopher Jefferson provides proposed wording for Option C.
19610 <p><b>Proposed resolution:</b></p>
19616 Add lvalue overloads before rvalue ones:
19619 <blockquote><pre><ins>void splice(const_iterator position, list<T,Allocator>& x);</ins>
19620 void splice(const_iterator position, list<T,Allocator>&& x);
19621 <ins>void splice(const_iterator position, list<T,Allocator>& x, const_iterator i);</ins>
19622 void splice(const_iterator position, list<T,Allocator>&& x, const_iterator i);
19623 <ins>void splice(const_iterator position, list<T,Allocator>& x,
19624 const_iterator first, const_iterator last);</ins>
19625 void splice(const_iterator position, list<T,Allocator>&& x,
19626 const_iterator first, const_iterator last);
19627 </pre></blockquote>
19630 In 23.3.4.4 [list.ops], similarly add lvalue overload before each rvalue one:
19633 (After paragraph 2)
19636 <blockquote><pre><ins>void splice(const_iterator position, list<T,Allocator>& x);</ins>
19637 void splice(const_iterator position, list<T,Allocator>&& x);
19638 </pre></blockquote>
19641 (After paragraph 6)
19644 <blockquote><pre><ins>void splice(const_iterator position, list<T,Allocator>& x, const_iterator i);</ins>
19645 void splice(const_iterator position, list<T,Allocator>&& x, const_iterator i);
19646 </pre></blockquote>
19649 (After paragraph 10)
19652 <blockquote><pre><ins>void splice(const_iterator position, list<T,Allocator>& x,
19653 const_iterator first, const_iterator last);</ins>
19654 void splice(const_iterator position, list<T,Allocator>&& x,
19655 const_iterator first, const_iterator last);
19656 </pre></blockquote>
19664 <h3><a name="1134"></a>1134. Redundant specification of stdint.h, fenv.h, tgmath.h, and maybe complex.h</h3>
19665 <p><b>Section:</b> 18.4.2 [stdinth], 26.3.2 [fenv], 26.8 [c.math], 26.4.11 [cmplxh] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
19666 <b>Submitter:</b> Robert Klarer <b>Opened:</b> 2009-05-26 <b>Last modified:</b> 2009-10-20</p>
19667 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
19668 <p><b>Discussion:</b></p>
19670 This is probably editorial.
19673 The following items should be removed from the draft, because they're
19674 redundant with Annex D, and they arguably make some *.h headers
19678 18.4.2 [stdinth] (regarding <tt><stdint.h></tt>)
19681 26.3.2 [fenv] (regarding <tt><fenv.h></tt>
19684 Line 3 of 26.8 [c.math] (regarding <tt><tgmath.h></tt>)
19687 26.4.11 [cmplxh] (regarding <tt><complex.h></tt>, though the note in this subclause is not redundant)
19691 2009-06-10 Ganesh adds:
19696 While searching for <tt>stdint</tt> in the CD, I found that <tt><stdint.h></tt> is also
19697 mentioned in 3.9.1 [basic.fundamental] /5. It guess it should refer to
19698 <tt><cstdint></tt> instead.
19707 Real issue. Maybe just editorial, maybe not. Move to Ready.
19712 <p><b>Proposed resolution:</b></p>
19714 Remove the section 18.4.2 [stdinth].
19717 Remove the section 26.3.2 [fenv].
19720 Remove 26.8 [c.math], p3:
19724 <del>-3- The header <tt><tgmath.h></tt> effectively includes the headers <tt><complex.h></tt>
19725 and <tt><math.h></tt>.</del>
19728 Remove the section 26.4.11 [cmplxh].
19736 <h3><a name="1135"></a>1135. <tt>exception_ptr</tt> should support contextual conversion to <tt>bool</tt></h3>
19737 <p><b>Section:</b> 18.8.5 [propagation] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
19738 <b>Submitter:</b> Daniel Krügler <b>Opened:</b> 2007-06-06 <b>Last modified:</b> 2009-10-20</p>
19739 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#propagation">active issues</a> in [propagation].</p>
19740 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#propagation">issues</a> in [propagation].</p>
19741 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
19742 <p><b>Discussion:</b></p>
19745 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2857.pdf">N2857</a>
19746 18.8.5 [propagation]/5, the implementation-defined type
19747 <tt>exception_ptr</tt> does provide the following ways to check whether
19748 it is a null value:
19750 <blockquote><pre>void f(std::exception_ptr p) {
19753 p == exception_ptr();
19755 </pre></blockquote>
19757 This is rather cumbersome way of checking for the null value
19758 and I suggest to require support for evaluation in a boolean
19762 <blockquote><pre>void g(std::exception_ptr p) {
19766 </pre></blockquote>
19774 Move to Ready. Note to editor: considering putting in a cross-reference
19775 to 4 [conv], paragraph 3, which defines the phrase
19776 "contextually converted to <tt>bool</tt>".
19781 <p><b>Proposed resolution:</b></p>
19783 In section 18.8.5 [propagation] insert a new paragraph between p.5 and p.6:
19788 An object <tt>e</tt> of type <tt>exception_ptr</tt> can be contextually converted to <tt>bool</tt>.
19789 The effect shall be as if <tt>e != exception_ptr()</tt> had been evaluated in place
19790 of <tt>e</tt>. There shall be no implicit conversion to arithmetic type, to
19791 enumeration type or to pointer type.
19800 <h3><a name="1136"></a>1136. Incomplete specification of <tt>nested_exception::rethrow_nested()</tt></h3>
19801 <p><b>Section:</b> 18.8.6 [except.nested] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
19802 <b>Submitter:</b> Daniel Krügler <b>Opened:</b> 2007-06-06 <b>Last modified:</b> 2009-10-20</p>
19803 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#except.nested">active issues</a> in [except.nested].</p>
19804 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#except.nested">issues</a> in [except.nested].</p>
19805 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
19806 <p><b>Discussion:</b></p>
19808 It was recently mentioned in a newsgroup article
19809 <a href="http://groups.google.de/group/comp.std.c++/msg/f82022aff68edf3d">http://groups.google.de/group/comp.std.c++/msg/f82022aff68edf3d</a>
19810 that the specification of the member function <tt>rethrow_nested()</tt> of the
19811 class <tt>nested_exception</tt> is incomplete, specifically it remains unclear
19812 what happens, if member <tt>nested_ptr()</tt> returns a null value. In
19813 18.8.6 [except.nested] we find only the following paragraph related to that:
19815 <blockquote><pre>void rethrow_nested() const; // [[noreturn]]
19818 -4- <i>Throws:</i> the stored exception captured by this <tt>nested_exception</tt> object.
19822 This is a problem, because it is possible to create an object of
19823 <tt>nested_exception</tt> with exactly such a state, e.g.
19825 <blockquote><pre>#include <exception>
19826 #include <iostream>
19829 std::nested_exception e; // OK, calls current_exception() and stores it's null value
19830 e.rethrow_nested(); // ?
19831 std::cout << "A" << std::endl;
19834 std::cout << "B" << std::endl;
19836 </pre></blockquote>
19838 I suggest to follow the proposal of the reporter, namely to invoke
19839 <tt>terminate()</tt> if <tt>nested_ptr()</tt> return a null value of <tt>exception_ptr</tt> instead
19840 of relying on the fallback position of undefined behavior. This would
19841 be consistent to the behavior of a <tt>throw;</tt> statement when no
19842 exception is being handled.
19856 <p><b>Proposed resolution:</b></p>
19858 Change around 18.8.6 [except.nested]/4 as indicated:
19862 -4- <i>Throws:</i> the stored exception captured by this <tt>nested_exception</tt>
19863 object<ins>, if <tt>nested_ptr() != nullptr</tt></ins>
19866 <ins>- <i>Remarks:</i> If <tt>nested_ptr() == nullptr</tt>, <tt>terminate()</tt>
19867 shall be called.</ins>
19876 <h3><a name="1137"></a>1137. Return type of <tt>conj</tt> and <tt>proj</tt></h3>
19877 <p><b>Section:</b> 26.4.9 [cmplx.over] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
19878 <b>Submitter:</b> Marc Steinbach <b>Opened:</b> 2009-06-11 <b>Last modified:</b> 2009-06-27</p>
19879 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#cmplx.over">issues</a> in [cmplx.over].</p>
19880 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
19881 <p><b>Discussion:</b></p>
19883 In clause 1, the Working Draft
19884 (<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2857.pdf">N2857</a>)
19885 specifies overloads of the
19888 <blockquote><pre>arg, conj, imag, norm, proj, real
19889 </pre></blockquote>
19891 for non-complex arithmetic types (<tt>float</tt>, <tt>double</tt>,
19892 <tt>long double</tt>, and integers).
19893 The only requirement (clause 2) specifies effective type promotion of arguments.
19896 I strongly suggest to add the following requirement on the return types:
19899 All the specified overloads must return real (i.e., non-complex) values,
19900 specifically, the nested <tt>value_type</tt> of effectively promoted arguments.
19904 (This has no effect on <tt>arg</tt>, <tt>imag</tt>, <tt>norm</tt>, <tt>real</tt>:
19905 they are real-valued anyway.)
19907 <p><b>Rationale:</b></p>
19909 Mathematically, <tt>conj()</tt> and <tt>proj()</tt>, like the transcendental functions, are
19910 complex-valued in general but map the (extended) real line to itself.
19911 In fact, both functions act as identity on the reals.
19912 A typical user will expect <tt>conj()</tt> and <tt>proj()</tt> to preserve this essential
19913 mathematical property in the same way as <tt>exp()</tt>, <tt>sin()</tt>, etc.
19914 A typical use of <tt>conj()</tt>, e.g., is the generic scalar product of n-vectors:
19917 <blockquote><pre>template<typename T>
19919 scalar_product(size_t n, T const* x, T const* y) {
19921 for (size_t i = 0; i < n; ++i)
19922 result += x[i] * std::conj(y[i]);
19925 </pre></blockquote>
19927 This will work equally well for real and complex floating-point types <tt>T</tt> if
19928 <tt>conj()</tt> returns <tt>T</tt>. It will not work with real types if <tt>conj()</tt>
19929 returns complex values.
19932 Instead, the implementation of <tt>scalar_product</tt> becomes either less efficient
19933 and less useful (if a complex result is always returned), or unnecessarily
19934 complicated (if overloaded versions with proper return types are defined).
19935 In the second case, the real-argument overload of <tt>conj()</tt> cannot be used.
19936 In fact, it must be avoided.
19939 Overloaded <tt>conj()</tt> and <tt>proj()</tt> are principally needed in generic programming.
19940 All such use cases will benefit from the proposed return type requirement,
19941 in a similar way as the <tt>scalar_product</tt> example.
19942 The requirement will not harm use cases where a complex return value
19943 is expected, because of implicit conversion to complex.
19944 Without the proposed return type guarantee, I find overloaded versions
19945 of <tt>conj()</tt> and <tt>proj()</tt> not only useless but actually troublesome.
19950 <p><b>Proposed resolution:</b></p>
19952 Insert a new paragraph after 26.4.9 [cmplx.over]/2:
19957 All of the specified overloads shall have a return type which is the nested <tt>value_type</tt> of
19958 the effectively promoted arguments.
19967 <h3><a name="1138"></a>1138. unusual return value for operator+</h3>
19968 <p><b>Section:</b> 21.4.8.1 [string::op+] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Tentatively Ready</a>
19969 <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-06-12 <b>Last modified:</b> 2009-11-05</p>
19970 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Tentatively%20Ready">Tentatively Ready</a> status.</p>
19971 <p><b>Discussion:</b></p>
19973 Many of the <tt>basic_string operator+</tt> overloads return an rvalue-reference. Is
19974 that really intended?
19977 I'm considering it might be a mild performance tweak to avoid making
19978 un-necessary copies of a cheaply movable type, but it opens risk to dangling
19979 references in code like:
19982 <blockquote><pre>auto && s = string{"x"} + string{y};
19983 </pre></blockquote>
19986 and I'm not sure about:
19989 <blockquote><pre>auto s = string{"x"} + string{y};
19990 </pre></blockquote>
19993 2009-10-11 Howard updated <i>Returns:</i> clause for each of these.
19998 2009-11-05 Howard adds:
20003 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
20007 <p><b>Proposed resolution:</b></p>
20009 Strike the <tt>&&</tt> from the return type in the following function
20015 21.3 [string.classes] p2 Header Synopsis
20018 <blockquote><pre>template<class charT, class traits, class Allocator>
20019 basic_string<charT,traits,Allocator><del>&&</del>
20020 operator+(basic_string<charT,traits,Allocator>&& lhs,
20021 const basic_string<charT,traits,Allocator>& rhs);
20023 template<class charT, class traits, class Allocator>
20024 basic_string<charT,traits,Allocator><del>&&</del>
20025 operator+(const basic_string<charT,traits,Allocator>& lhs,
20026 basic_string<charT,traits,Allocator>&& rhs);
20028 template<class charT, class traits, class Allocator>
20029 basic_string<charT,traits,Allocator><del>&&</del>
20030 operator+(basic_string<charT,traits,Allocator>&& lhs,
20031 basic_string<charT,traits,Allocator>&& rhs);
20034 template<class charT, class traits, class Allocator>
20035 basic_string<charT,traits,Allocator><del>&&</del>
20036 operator+(const charT* lhs,
20037 basic_string<charT,traits,Allocator>&& rhs);
20039 template<class charT, class traits, class Allocator>
20040 basic_string<charT,traits,Allocator><del>&&</del>
20041 operator+(charT lhs, basic_string<charT,traits,Allocator>&& rhs);
20043 template<class charT, class traits, class Allocator>
20044 basic_string<charT,traits,Allocator><del>&&</del>
20045 operator+(basic_string<charT,traits,Allocator>&& lhs,
20048 template<class charT, class traits, class Allocator>
20049 basic_string<charT,traits,Allocator><del>&&</del>
20050 operator+(basic_string<charT,traits,Allocator>&& lhs, charT rhs);
20051 </pre></blockquote>
20054 21.4.8.1 [string::op+]
20057 <blockquote><pre>template<class charT, class traits, class Allocator>
20058 basic_string<charT,traits,Allocator><del>&&</del>
20059 operator+(basic_string<charT,traits,Allocator>&& lhs,
20060 const basic_string<charT,traits,Allocator>& rhs);
20063 <i>Returns:</i> <tt><ins>std::move(</ins>lhs.append(rhs)<ins>)</ins></tt>
20065 <pre>template<class charT, class traits, class Allocator>
20066 basic_string<charT,traits,Allocator><del>&&</del>
20067 operator+(const basic_string<charT,traits,Allocator>& lhs,
20068 basic_string<charT,traits,Allocator>&& rhs);
20071 <i>Returns:</i> <tt><ins>std::move(</ins>rhs.insert(0, lhs)<ins>)</ins></tt>
20073 <pre>template<class charT, class traits, class Allocator>
20074 basic_string<charT,traits,Allocator><del>&&</del>
20075 operator+(basic_string<charT,traits,Allocator>&& lhs,
20076 basic_string<charT,traits,Allocator>&& rhs);
20079 <i>Returns:</i> <tt><ins>std::move(</ins>lhs.append(rhs)<ins>)</ins></tt> [<i>Note:</i> Or equivalently
20080 <tt><ins>std::move(</ins>rhs.insert(0, lhs)<ins>)</ins></tt> — <i>end note</i>]
20082 <pre>template<class charT, class traits, class Allocator>
20083 basic_string<charT,traits,Allocator><del>&&</del>
20084 operator+(const charT* lhs,
20085 basic_string<charT,traits,Allocator>&& rhs);
20088 <i>Returns:</i> <tt><ins>std::move(</ins>rhs.insert(0, lhs)<ins>)</ins></tt>.
20090 <pre>template<class charT, class traits, class Allocator>
20091 basic_string<charT,traits,Allocator><del>&&</del>
20092 operator+(charT lhs, basic_string<charT,traits,Allocator>&& rhs);
20095 <i>Returns:</i> <tt><ins>std::move(</ins>rhs.insert(0, 1, lhs)<ins>)</ins></tt>.
20097 <pre>template<class charT, class traits, class Allocator>
20098 basic_string<charT,traits,Allocator><del>&&</del>
20099 operator+(basic_string<charT,traits,Allocator>&& lhs,
20103 <i>Returns:</i> <tt><ins>std::move(</ins>lhs.append(rhs)<ins>)</ins></tt>.
20105 <pre>template<class charT, class traits, class Allocator>
20106 basic_string<charT,traits,Allocator><del>&&</del>
20107 operator+(basic_string<charT,traits,Allocator>&& lhs, charT rhs);
20110 <i>Returns:</i> <tt><ins>std::move(</ins>lhs.append(1, rhs)<ins>)</ins></tt>.
20122 <h3><a name="1144"></a>1144. "thread safe" is undefined</h3>
20123 <p><b>Section:</b> 18.5 [support.start.term] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
20124 <b>Submitter:</b> LWG <b>Opened:</b> 2009-06-16 <b>Last modified:</b> 2009-10-20</p>
20125 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#support.start.term">issues</a> in [support.start.term].</p>
20126 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
20127 <p><b>Discussion:</b></p>
20129 <p><b>Addresses UK 187</b></p>
20132 The term "thread safe" is not defined nor used in this context
20133 anywhere else in the standard.
20136 <p><b>Suggested action:</b></p>
20138 Clarify the meaning of "thread safe".
20148 The "thread safe" language has already been change in the WP. It was
20149 changed to "happen before", but the current WP text is still a little
20150 incomplete: "happen before" is binary, but the current WP text only
20151 mentions one thing.
20160 <p><b>Proposed resolution:</b></p>
20162 For the following functions in 18.5 [support.start.term].
20164 <blockquote><pre><code>
20165 extern "C" int at_quick_exit(void (*f)(void));
20166 extern "C++" int at_quick_exit(void (*f)(void));
20167 </code></pre></blockquote>
20170 Edit paragraph 10 as follows.
20172 to provide the other half of the happens before relation;
20173 to note indeterminate ordering;
20174 and to clean up some formatting.
20178 The <code>at_quick_exit()</code> functions
20179 register the function pointed to by <code>f</code>
20180 to be called without arguments when <code>quick_exit</code> is called.
20181 It is unspecified whether a call to <code>at_quick_exit()</code>
20182 that does not <del>happen-before</del> <ins>happen before</ins> (1.10)
20183 <ins>all calls to <code>quick_exit</code></ins>
20186 the <code>at_quick_exit()</code> functions
20187 shall not introduce a data race (17.6.4.7).
20188 <del>exitnote</del>
20189 <ins>—<i>end note</i>]</ins>
20192 The order of registration may be indeterminate
20193 if <code>at_quick_exit</code> was called from more than one thread.
20194 —<i>end note</i>]
20196 [<i>Note:</i> The <code>at_quick_exit</code> registrations
20197 are distinct from the <code>atexit</code> registrations,
20198 and applications may need to call both registration functions
20199 with the same argument.
20200 —<i>end note</i>]
20204 For the following function.
20206 <blockquote><pre><code>
20207 void quick_exit [[noreturn]] (int status)
20208 </code></pre></blockquote>
20211 Edit paragraph 13 as follows.
20212 The intent is to note that thread-local variables may be different.
20216 Functions registered by calls to <code>at_quick_exit</code>
20217 are called in the reverse order of their registration,
20218 except that a function shall be called
20219 after any previously registered functions
20220 that had already been called at the time it was registered.
20221 Objects shall not be destroyed as a result of calling <code>quick_exit</code>.
20222 If control leaves a registered function called by <code>quick_exit</code>
20223 because the function does not provide a handler for a thrown exception,
20224 <code>terminate()</code> shall be called.
20227 Functions registered by one thread may be called by any thread,
20228 and hence should not rely on the identity of thread-storage-duration objects.
20229 —<i>end note</i>]
20231 After calling registered functions,
20232 <code>quick_exit</code> shall call <code>_Exit(status)</code>.
20234 The standard file buffers are not flushed.
20235 See: ISO C 7.20.4.4.
20236 —<i>end note</i>]
20244 <h3><a name="1151"></a>1151. Behavior of the library in the presence of threads is incompletely specified</h3>
20245 <p><b>Section:</b> 17 [library] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
20246 <b>Submitter:</b> LWG <b>Opened:</b> 2009-06-28 <b>Last modified:</b> 2009-10-20</p>
20247 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#library">active issues</a> in [library].</p>
20248 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#library">issues</a> in [library].</p>
20249 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
20250 <p><b>Discussion:</b></p>
20251 <p><b>Addresses US 63</b></p>
20253 <p><b>Description</b></p>
20254 <p>The behavior of the library in the presence of threads
20255 is incompletely specified.</p>
20256 <p>For example, if thread 1 assigns to <tt>X</tt>, then writes data
20257 to file <tt>f</tt>, which is read by thread 2, and then accesses
20258 variable <tt>X</tt>, is thread 2 guaranteed to be able to see the
20259 value assigned to <tt>X</tt> by thread 1? In other words, does the
20260 write of the data "happen before" the read?</p>
20261 <p>Another example: does simultaneous access using <tt>operator
20262 at()</tt> to different characters in the same non-const string
20263 really introduce a data race?</p>
20264 <p><b>Suggestion</b></p>
20265 <p><b>Notes</b></p><p>17 SG: should go to threads group; misclassified in document
20268 <p>Concurrency SG: Create an issue. Hans will look into it.</p>
20276 Move to "Open". Hans and the rest of the concurrency working group will
20277 study this. We can't make progress without a thorough review and a
20283 <p><b>Proposed resolution:</b></p>
20290 <h3><a name="1152"></a>1152. expressions parsed differently than intended</h3>
20291 <p><b>Section:</b> 22.4.2.2.2 [facet.num.put.virtuals] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Tentatively Ready</a>
20292 <b>Submitter:</b> Seungbeom Kim <b>Opened:</b> 2009-06-27 <b>Last modified:</b> 2009-10-28</p>
20293 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#facet.num.put.virtuals">active issues</a> in [facet.num.put.virtuals].</p>
20294 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#facet.num.put.virtuals">issues</a> in [facet.num.put.virtuals].</p>
20295 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Tentatively%20Ready">Tentatively Ready</a> status.</p>
20296 <p><b>Discussion:</b></p>
20298 In Table 73 -- Floating-point conversions, 22.4.2.2.2 [facet.num.put.virtuals],
20300 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2914.pdf">N2914</a>,
20301 we have the following entries:
20304 <caption>Table 73 — Floating-point conversions</caption>
20306 <th>State</th> <th><tt>stdio</tt> equivalent</th>
20309 <td><tt>floatfield == ios_base::fixed | ios_base::scientific && !uppercase</tt></td>
20310 <td align="center"><tt>%a</tt></td>
20314 <td><tt>floatfield == ios_base::fixed | ios_base::scientific</tt></td>
20315 <td align="center"><tt>%A</tt></td>
20320 These expressions are supposed to mean:
20323 <blockquote><pre>floatfield == (ios_base::fixed | ios_base::scientific) && !uppercase
20324 floatfield == (ios_base::fixed | ios_base::scientific)
20325 </pre></blockquote>
20327 but technically parsed as:
20329 <blockquote><pre>((floatfield == ios_base::fixed) | ios_base::scientific) && (!uppercase)
20330 ((floatfield == ios_base::fixed) | ios_base::scientific)
20331 </pre></blockquote>
20333 and should be corrected with additional parentheses, as shown above.
20342 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
20347 <p><b>Proposed resolution:</b></p>
20349 Change Table 83 — Floating-point conversions in 22.4.2.2.2 [facet.num.put.virtuals]:
20353 <caption>Table 83 — Floating-point conversions</caption>
20355 <th>State</th> <th><tt>stdio</tt> equivalent</th>
20358 <td><tt>floatfield == <ins>(</ins>ios_base::fixed | ios_base::scientific<ins>)</ins> && !uppercase</tt></td>
20359 <td align="center"><tt>%a</tt></td>
20363 <td><tt>floatfield == <ins>(</ins>ios_base::fixed | ios_base::scientific<ins>)</ins></tt></td>
20364 <td align="center"><tt>%A</tt></td>
20373 <h3><a name="1153"></a>1153. Standard library needs review for constructors to be
20374 explicit to avoid treatment as initializer-list constructor</h3>
20375 <p><b>Section:</b> 17 [library], 30 [thread], D [depr] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
20376 <b>Submitter:</b> LWG <b>Opened:</b> 2009-06-28 <b>Last modified:</b> 2009-10-20</p>
20377 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#library">active issues</a> in [library].</p>
20378 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#library">issues</a> in [library].</p>
20379 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
20380 <p><b>Discussion:</b></p>
20382 <p><b>Addresses DE 2</b></p>
20384 <p><b>Description</b></p>
20385 <p>Marking a constructor with <tt>explicit</tt> has semantics
20386 even for a constructor with zero or several parameters:
20387 Such a constructor cannot be used with list-initialization
20388 in a copy-initialization context, see 13.3.1.7 [over.match.list]. The
20389 standard library apparently has not been reviewed for
20390 marking non-single-parameter constructors as <tt>explicit</tt>.</p>
20391 <p><b>Suggestion</b></p>
20392 <p>Consider marking zero-parameter and multi-parameter
20393 constructors <tt>explicit</tt> in classes that have at least one
20394 constructor marked <tt>explicit</tt> and that do not have an
20395 initializer-list constructor.</p>
20397 <p><b>Notes</b></p>
20398 <p>Robert Klarer to address this one.</p>
20406 Move to "Open". Robert Klarer has promised to provide wording.
20411 <p><b>Proposed resolution:</b></p>
20418 <h3><a name="1154"></a>1154. <tt>complex</tt> should accept integral types</h3>
20419 <p><b>Section:</b> 26.4 [complex.numbers] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
20420 <b>Submitter:</b> LWG <b>Opened:</b> 2009-06-28 <b>Last modified:</b> 2009-10-26</p>
20421 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#complex.numbers">issues</a> in [complex.numbers].</p>
20422 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
20423 <p><b>Discussion:</b></p>
20425 <p><b>Addresses FR 35</b></p>
20427 <p><b>Description</b></p>
20428 <p>Instantiations of the class
20429 template <tt>complex<></tt> have to be allowed for integral
20430 types, to reflect existing practice and ISO standards
20433 <p><b>Suggestion</b></p>
20436 2009-10-26 Proposed wording in
20437 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n3002.pdf">N3002</a>.
20443 <p><b>Proposed resolution:</b></p>
20445 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n3002.pdf">N3002</a>.
20452 <h3><a name="1156"></a>1156. Constraints on bitmask and enumeration types to be tightened</h3>
20453 <p><b>Section:</b> 17.5.2.1.2 [enumerated.types], 17.5.2.1.3 [bitmask.types] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
20454 <b>Submitter:</b> LWG <b>Opened:</b> 2009-06-28 <b>Last modified:</b> 2009-10-27</p>
20455 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
20456 <p><b>Discussion:</b></p>
20458 <p><b>Addresses UK 165</b></p>
20460 <p><b>Description</b></p>
20462 bitmask and enumeration types were supposed to be tightened
20463 up as part of the motivation for the <tt>constexpr</tt> feature -
20465 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2235.pdf">N2235</a>
20467 <p><b>Suggestion</b></p>
20468 <p>Adopt wording in line with the motivation
20470 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2235.pdf">N2235</a></p>
20471 <p><b>Notes</b></p>
20472 <p>Robert Klarer to review</p>
20480 Move to Open. Ping Robert Klarer to provide wording, using N2235 as
20486 <p><b>Proposed resolution:</b></p>
20493 <h3><a name="1157"></a>1157. Local types can now instantiate templates</h3>
20494 <p><b>Section:</b> 17.6.3.2.1 [namespace.std] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
20495 <b>Submitter:</b> LWG <b>Opened:</b> 2009-06-28 <b>Last modified:</b> 2009-10-21</p>
20496 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
20497 <p><b>Discussion:</b></p>
20499 <p><b>Addresses UK 175</b></p>
20501 <p><b>Description</b></p>
20503 now be used to instantiate templates, but don't have
20504 external linkage.</p>
20505 <p><b>Suggestion</b></p>
20506 <p>Remove the reference to external linkage.</p>
20508 <p><b>Notes</b></p>
20509 <p>We accept the proposed solution. Martin will draft an issue.</p>
20512 2009-07-28 Alisdair provided wording.
20517 2009-10 Santa Cruz:
20527 <p><b>Proposed resolution:</b></p>
20529 17.6.3.2.1 [namespace.std]
20532 Strike "of external linkage" in p1 and p2:
20537 -1- The behavior of a C++ program is undefined if it adds declarations or
20538 definitions to namespace <tt>std</tt> or to a namespace within namespace <tt>std</tt>
20539 unless otherwise specified. A program may add a concept map for any
20540 standard library concept or a template specialization for any standard
20541 library template to namespace <tt>std</tt> only if the declaration depends on a
20542 user-defined type <del>of external linkage</del> and the specialization meets the
20543 standard library requirements for the original template and is not
20544 explicitly prohibited.<sup>179</sup>
20548 -2- The behavior of a C++ program is undefined if it declares
20552 an explicit specialization of any member function of a standard library
20556 an explicit specialization of any member function template of a standard
20557 library class or class template, or
20560 an explicit or partial specialization of any member class template of a
20561 standard library class or class template.
20565 A program may explicitly instantiate a template defined in the standard
20566 library only if the declaration depends on the name of a user-defined
20567 type <del>of external linkage</del> and the instantiation meets the standard
20568 library requirements for the original template.
20578 <h3><a name="1158"></a>1158. Encouragement to use monotonic clock</h3>
20579 <p><b>Section:</b> 30.2.4 [thread.req.timing] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Tentatively Ready</a>
20580 <b>Submitter:</b> LWG <b>Opened:</b> 2009-06-28 <b>Last modified:</b> 2009-10-31</p>
20581 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Tentatively%20Ready">Tentatively Ready</a> status.</p>
20582 <p><b>Discussion:</b></p>
20584 <p><b>Addresses UK 322, US 96</b></p>
20586 <p><b>Description</b></p>
20588 can provide a monotonic clock. How are they expected to
20589 treat a _for function?</p>
20590 <p><b>Suggestion</b></p>
20591 <p>Add at least a note explaining the intent
20592 for systems that do not support a monotonic clock.</p>
20594 <p><b>Notes</b></p>
20595 <p>Create an issue, together with UK 96. Note that the specification as is
20596 already allows a non-monotonic clock due to the word “should” rather than
20597 “shall”. If this wording is kept, a footnote should be added to make the
20600 <p><i>[ 2009-06-29 Beman provided a proposed resolution. ] </i></p>
20603 2009-10-31 Howard adds:
20608 Set to Tentatively Ready after 5 positive votes on c++std-lib.
20613 <p><b>Proposed resolution:</b></p>
20615 <p><i>Change Timing specifications 30.2.4 [thread.req.timing] as indicated:</i></p>
20617 <p>The member functions whose names end in <tt>_for</tt> take an argument that
20618 specifies a relative time. Implementations
20619 <del>should</del> <ins>are encouraged but not required to</ins> use a
20620 monotonic clock to measure time for these functions.</p>
20628 <h3><a name="1159"></a>1159. Unclear spec for <tt>resource_deadlock_would_occur</tt></h3>
20629 <p><b>Section:</b> 30.4.3.2.2 [thread.lock.unique.locking] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
20630 <b>Submitter:</b> LWG <b>Opened:</b> 2009-06-28 <b>Last modified:</b> 2009-07-04</p>
20631 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#thread.lock.unique.locking">active issues</a> in [thread.lock.unique.locking].</p>
20632 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#thread.lock.unique.locking">issues</a> in [thread.lock.unique.locking].</p>
20633 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
20634 <p><b>Discussion:</b></p>
20636 <p><b>Addresses UK 327, UK 328</b></p>
20638 <p><b>UK 327 Description</b></p>
20640 the specification for error condition
20641 <tt>resource_deadlock_would_occur</tt> means. It is perfectly
20642 possible for this thread to own the mutex without setting
20643 owns to true on this specific lock object. It is also
20644 possible for lock operations to succeed even if the thread
20645 does own the mutex, if the mutex is recursive. Likewise, if
20646 the mutex is not recursive and the mutex has been locked
20647 externally, it is not always possible to know that this
20648 error condition should be raised, depending on the host
20649 operating system facilities. It is possible that 'i.e.' was
20650 supposed to be 'e.g.' and that suggests that recursive
20651 locks are not allowed. That makes sense, as the
20652 exposition-only member owns is boolean and not a integer to
20653 count recursive locks.</p>
20655 <p><b>UK 327 Suggestion</b></p>
20656 <p>Add a precondition <tt>!owns</tt>. Change the 'i.e.'
20657 in the error condition to be 'e.g.' to allow for this
20658 condition to propogate deadlock detection by the host OS.</p>
20659 <p><b>UK 327 Notes</b></p>
20660 <p>Create an issue. Assigned to Lawrence Crowl. Note: not sure what try_lock
20661 means for recursive locks when you are the owner. POSIX has language on
20662 this, which should ideally be followed. Proposed fix is not quite right, for
20663 example, try_lock should have different wording from lock.</p>
20665 <p><b>UK 328 Description</b></p>
20667 <p>There is a missing precondition that <tt>owns</tt>
20668 is true, or an <tt>if(owns)</tt> test is missing from the effect
20670 <p><b>UK 328 Suggestion</b></p>
20672 precondition that <tt>owns == true</tt>. Add an error condition to
20673 detect a violation, rather than yield undefined behaviour.</p>
20674 <p><b>UK 328 Notes</b></p>
20675 <p>Handle in same issue as UK 327. Also uncertain that the proposed resolution
20676 is the correct one.</p>
20681 <p><b>Proposed resolution:</b></p>
20688 <h3><a name="1169"></a>1169. <tt>num_get</tt> not fully compatible with <tt>strto*</tt></h3>
20689 <p><b>Section:</b> 22.4.2.1.2 [facet.num.get.virtuals] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
20690 <b>Submitter:</b> Cosmin Truta <b>Opened:</b> 2009-07-04 <b>Last modified:</b> 2009-07-07</p>
20691 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#facet.num.get.virtuals">active issues</a> in [facet.num.get.virtuals].</p>
20692 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#facet.num.get.virtuals">issues</a> in [facet.num.get.virtuals].</p>
20693 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
20694 <p><b>Discussion:</b></p>
20696 As specified in the latest draft,
20697 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2914.pdf">N2914</a>,
20698 <code>num_get</code> is still not fully compatible with the following C
20699 functions: <code>strtoul</code>, <code>strtoull</code>,
20700 <code>strtof</code> and
20701 <code>strtod</code>.
20704 In C, when conversion of a string to an unsigned integer type falls
20706 representable range, <code>strtoul</code> and <code>strtoull</code> return
20707 <code>ULONG_MAX</code> and <code>ULLONG_MAX</code>, respectively,
20709 whether the input field represents a positive or a negative value.
20710 On the other hand, the result of <code>num_get</code> conversion of
20712 values to unsigned integer types is zero. This raises a compatibility
20716 Moreover, in C, when conversion of a string to a floating-point type falls
20717 outside the representable range, <code>strtof</code>, <code>strtod</code>
20719 <code>strtold</code> return <code>±HUGE_VALF</code>,
20720 <code>±HUGE_VAL</code> and <code>±HUGE_VALL</code>, respectively.
20721 On the other hand, the result of <code>num_get</code> conversion of such
20722 out-of-range floating-point values results in the most positive/negative
20723 representable value.
20724 Although many C library implementations do implement <code>HUGE_VAL</code>
20725 (etc.) as the highest representable (which is, usually, the infinity),
20727 isn't required by the C standard. The C library specification makes no
20728 statement regarding the value of <code>HUGE_VAL</code> and friends, which
20729 potentially raises the same compatibility issue as in the above case of
20731 In addition, neither C nor C++ define symbolic constants for the maximum
20732 representable floating-point values (they only do so only for the maximum
20733 representable <i>finite</i> floating-point values), which raises a
20735 issue (it would be hard for the programmer to check the result of
20736 <code>num_get</code> against overflow).
20739 As such, we propose to adjust the specification of <code>num_get</code> to
20740 closely follow the behavior of all of its underlying C functions.
20744 <p><b>Proposed resolution:</b></p>
20747 Change 22.4.2.1.2 [facet.num.get.virtuals] as follows:
20752 The sequence of <code>char</code>s accumulated in stage 2 (the field) is
20753 converted to a numeric value by the rules of one of the functions declared in
20754 the header <code><cstdlib></code>:
20757 <li>For a signed integer value, the function <code>strtoll</code>.</li>
20758 <li>For an unsigned integer value, the function <code>strtoull</code>.</li>
20759 <li><ins>For a <code>float</code> value, the function
20760 <code>strtof</code>.</ins></li>
20761 <li><ins>For a <code>double</code> value, the function
20762 <code>strtod</code>.</ins></li>
20763 <li>For a <del>floating-point</del> <ins><code>long double</code></ins>
20764 value, the function <code>strtold</code>.</li>
20767 The numeric value to be stored can be one of:
20770 <li>zero, if the conversion function fails to convert the entire field.
20771 <del><code>ios_base::failbit</code> is assigned to <code>err</code>.</del></li>
20772 <li>the most positive <ins>(or negative)</ins> representable value, if
20773 the field <ins>to be converted to a signed integer type</ins> represents a
20774 value too large positive <ins>(or negative)</ins> to be represented in
20776 <del><code>ios_base::failbit</code> is assigned to <code>err</code>.</del></li>
20777 <li><del>the most negative representable value or zero for an unsigned integer
20778 type, if the field represents a value too large negative to be represented
20779 in <code>val</code>.
20780 <code>ios_base::failbit</code> is assigned to <code>err</code>.</del></li>
20781 <li><ins>the most positive representable value, if the field to be converted to
20782 an unsigned integer type represents a value that cannot be represented in
20783 <code>val</code>.</ins></li>
20784 <li>the converted value, otherwise.</li>
20787 The resultant numeric value is stored in <code>val</code>.
20788 <ins>If the conversion function fails to convert the entire field, or if the
20789 field represents a value outside the range of representable values,
20790 <code>ios_base::failbit</code> is assigned to <code>err</code>.</ins>
20800 <h3><a name="1170"></a>1170. String <i>char-like types</i> no longer PODs</h3>
20801 <p><b>Section:</b> 21.1 [strings.general] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
20802 <b>Submitter:</b> Beman Dawes <b>Opened:</b> 2009-06-22 <b>Last modified:</b> 2009-11-04</p>
20803 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
20804 <p><b>Discussion:</b></p>
20806 <p><b>Addresses UK 218</b></p>
20808 <p>Prior to the introduction of constant expressions into the library,
20809 <tt>basic_string</tt> elements had to be POD types, and thus had to be both trivially
20810 copyable and standard-layout. This ensured that they could be memcpy'ed and
20811 would be compatible with other libraries and languages, particularly the C
20812 language and its library.</p>
20814 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2349.pdf">N2349</a>,
20815 Constant Expressions in the Standard Library Revision 2, changed the
20816 requirement in 21/1 from "POD type" to "literal type". That change had the
20817 effect of removing the trivially copyable and standard-layout requirements from
20818 <tt>basic_string</tt> elements.</p>
20819 <p>This means that <tt>basic_string</tt> elements no longer are guaranteed to be
20820 memcpy'able, and are no longer guaranteed to be standard-layout types:</p>
20822 <p>3.9/p2 and 3.9/p3 both make it clear that a "trivially copyable type" is
20823 required for memcpy to be guaranteed to work.</p>
20824 <p>Literal types (3.9p12) may have a non-trivial copy assignment operator, and
20825 that violates the trivially copyable requirements given in 9/p 6, bullet item
20827 <p>Literal types (3.9p12) have no standard-layout requirement, either.</p>
20829 <p>This situation probably arose because the wording for "Constant Expressions
20830 in the Standard Library" was in process at the same time the C++ POD
20831 deconstruction wording was in process. </p>
20832 <p>Since trivially copyable types meet the C++0x requirements for literal types,
20833 and thus work with constant expressions, it seems an easy fix to revert the
20834 <tt>basic_string</tt> element wording to its original state.</p>
20837 2009-07-28 Alisdair adds:
20842 When looking for any resolution for this issue, consider the definition of
20843 "character container type" in 17.3.4 [defns.character.container]. This
20844 does require the character type to be a POD, and this term is used in a
20845 number of places through clause 21 and 28. This suggests the PODness
20846 constraint remains, but is much more subtle than before. Meanwhile, I
20847 suspect the change from POD type to literal type was intentional with
20848 the assumption that trivially copyable types with
20849 non-trivial-but-constexpr constructors should serve as well. I don't
20850 believe the current wording offers the right guarantees for either of
20855 2009-11-04 Howard modifies proposed wording to disallow array types as
20862 <p><b>Proposed resolution:</b></p>
20864 <p><i>Change General 21.1 [strings.general] as indicated:</i></p>
20866 <p>This Clause describes components for manipulating sequences of any
20867 <del>literal</del> <ins>non-array POD</ins> (3.9) type. In this Clause
20868 such types are called <i>char-like types</i>, and objects of char-like
20869 types are called <i>char-like objects</i> or simply
20870 <i>characters</i>.</p>
20879 <h3><a name="1171"></a>1171. duration types should be literal</h3>
20880 <p><b>Section:</b> 20.9.3 [time.duration] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
20881 <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-07-06 <b>Last modified:</b> 2009-10-31</p>
20882 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#time.duration">active issues</a> in [time.duration].</p>
20883 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#time.duration">issues</a> in [time.duration].</p>
20884 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
20885 <p><b>Discussion:</b></p>
20887 The <tt>duration</tt> types in 20.9.3 [time.duration] are exactly the sort of type
20888 that should be "literal types" in the new standard. Likewise,
20889 arithmetic operations on <tt>duration</tt>s should be declared <tt>constexpr</tt>.
20893 2009-09-21 Daniel adds:
20898 An alternative (and possibly preferable solution for potentially
20899 heap-allocating big_int representation types) would be to ask the core
20900 language to allow references to <tt>const</tt> literal types as feasible
20901 arguments for <tt>constexpr</tt> functions.
20905 2009-10-30 Alisdair adds:
20911 I suggest this issue moves from New to Open.
20915 Half of this issue was dealt with in paper
20916 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2994.html">n2994</a>
20917 on constexpr constructors.
20921 The other half (duration arithmetic) is on hold pending Core support for
20922 <tt>const &</tt> in <tt>constexpr</tt> functions.
20929 <p><b>Proposed resolution:</b></p>
20931 Add <tt>constexpr</tt> to declaration of following functions and constructors:
20939 <b>Header <tt><chrono></tt> synopsis</b>
20942 <p><i>[Draughting note - observe switch to pass-by-value to support constexpr]</i></p>
20945 <pre><i>// duration arithmetic</i>
20946 template <class Rep1, class Period1, class Rep2, class Period2>
20947 typename common_type<duration<Rep1, Period1>, duration<Rep2, Period2>>::type
20948 <ins>constexpr</ins> operator+(<del>const</del> duration<Rep1, Period1><del>&</del> lhs, <del>const</del> duration<Rep2, Period2><del>&</del> rhs);
20949 template <class Rep1, class Period1, class Rep2, class Period2>
20950 typename common_type<duration<Rep1, Period1>, duration<Rep2, Period2>>::type
20951 <ins>constexpr</ins> operator-(<del>const</del> duration<Rep1, Period1><del>&</del> lhs, <del>const</del> duration<Rep2, Period2><del>&</del> rhs);
20952 template <class Rep1, class Period, class Rep2>
20953 duration<typename common_type<Rep1, Rep2>::type, Period>
20954 <ins>constexpr</ins> operator*(<del>const</del> duration<Rep1, Period><del>&</del> d, <del>const</del> Rep2<del>&</del> s);
20955 template <class Rep1, class Period, class Rep2>
20956 duration<typename common_type<Rep1, Rep2>::type, Period>
20957 <ins>constexpr</ins> operator*(<del>const</del> Rep1<del>&</del> s, <del>const</del> duration<Rep2, Period><del>&</del> d);
20958 template <class Rep1, class Period, class Rep2>
20959 duration<typename common_type<Rep1, Rep2>::type, Period>
20960 <ins>constexpr</ins> operator/(<del>const</del> duration<Rep1, Period><del>&</del> d, <del>const</del> Rep2<del>&</del> s);
20961 template <class Rep1, class Period1, class Rep2, class Period2>
20962 typename common_type<Rep1, Rep2>::type
20963 <ins>constexpr</ins> operator/(<del>const</del> duration<Rep1, Period1><del>&</del> lhs, <del>const</del> duration<Rep2, Period2><del>&</del> rhs);
20965 <i>// duration comparisons</i>
20966 template <class Rep1, class Period1, class Rep2, class Period2>
20967 <ins>constexpr</ins> bool operator==(<del>const</del> duration<Rep1, Period1><del>&</del> lhs, <del>const</del> duration<Rep2, Period2><del>&</del> rhs);
20968 template <class Rep1, class Period1, class Rep2, class Period2>
20969 <ins>constexpr</ins> bool operator!=(<del>const</del> duration<Rep1, Period1><del>&</del> lhs, <del>const</del> duration<Rep2, Period2><del>&</del> rhs);
20970 template <class Rep1, class Period1, class Rep2, class Period2>
20971 <ins>constexpr</ins> bool operator< (<del>const</del> duration<Rep1, Period1><del>&</del> lhs, <del>const</del> duration<Rep2, Period2><del>&</del> rhs);
20972 template <class Rep1, class Period1, class Rep2, class Period2>
20973 <ins>constexpr</ins> bool operator<=(<del>const</del> duration<Rep1, Period1><del>&</del> lhs, <del>const</del> duration<Rep2, Period2><del>&</del> rhs);
20974 template <class Rep1, class Period1, class Rep2, class Period2>
20975 <ins>constexpr</ins> bool operator> (<del>const</del> duration<Rep1, Period1><del>&</del> lhs, <del>const</del> duration<Rep2, Period2><del>&</del> rhs);
20976 template <class Rep1, class Period1, class Rep2, class Period2>
20977 <ins>constexpr</ins> bool operator>=(<del>const</del> duration<Rep1, Period1><del>&</del> lhs, <del>const</del> duration<Rep2, Period2><del>&</del> rhs);
20979 <i>// duration_cast</i>
20980 template <class ToDuration, class Rep, class Period>
20981 <ins>constexpr</ins> ToDuration duration_cast(<del>const</del> duration<Rep, Period><del>&</del> d);
20985 <b>20.9.3 [time.duration]</b>
20988 <pre>template <class Rep, class Period = ratio<1>>
20992 <i>// 20.9.3.1, construct/copy/destroy:</i>
20993 <ins>constexpr</ins> duration() = default;
20995 template <class Rep2>
20996 <ins>constexpr</ins> explicit duration(const Rep2& r);
20997 template <class Rep2, class Period2>
20998 <ins>constexpr</ins> duration(const duration<Rep2, Period2>& d);
21000 <ins>constexpr</ins> duration(const duration&) = default;
21002 <i>// 20.9.3.2, observer:</i>
21003 <ins>constexpr</ins> rep count() const;
21005 <i>// 20.9.3.3, arithmetic:</i>
21006 <ins>constexpr</ins> duration operator+() const;
21007 <ins>constexpr</ins> duration operator-() const;
21014 Note - this edit already seems assumed by definition of the duration static members <tt>zero/min/max</tt>.
21015 They cannot meaningfully be <tt>constexpr</tt> without this change.
21024 <h3><a name="1173"></a>1173. "Equivalence" wishy-washiness</h3>
21025 <p><b>Section:</b> 17 [library] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
21026 <b>Submitter:</b> David Abrahams <b>Opened:</b> 2009-07-14 <b>Last modified:</b> 2009-10-20</p>
21027 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#library">active issues</a> in [library].</p>
21028 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#library">issues</a> in [library].</p>
21029 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
21030 <p><b>Discussion:</b></p>
21032 Issue: The <tt>CopyConstructible</tt> requirements are wishy-washy. It requires
21033 that the copy is "equivalent" to the original, but "equivalent" is never
21037 I believe this to be an example of a more general lack of rigor around
21038 copy and assignment, although I haven't done the research to dig up all
21042 It's a problem because if you don't know what <tt>CopyConstructible</tt> means,
21043 you also don't know what it means to copy a pair of <tt>CopyConstructible</tt>
21044 types. It doesn't prevent us from writing code, but it is a hole in our
21045 ability to understand the meaning of copy.
21048 Furthermore, I'm pretty sure that vector's copy constructor doesn't
21049 require the elements to be <tt>EqualityComparable</tt>, so that table is actually
21050 referring to some ill-defined notion of equivalence when it uses ==.
21059 Move to "Open". Dave is right that this is a big issue. Paper D2987
21060 ("Defining Move Special Member Functions", Bjarne Stroustrup and
21061 Lawrence Crowl) touches on this but does not solve it. This issue is
21062 discussed in Elements of Programming.
21067 <p><b>Proposed resolution:</b></p>
21074 <h3><a name="1175"></a>1175. <tt>unordered</tt> complexity</h3>
21075 <p><b>Section:</b> 23.2.5 [unord.req] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
21076 <b>Submitter:</b> Pablo Halpern <b>Opened:</b> 2009-07-17 <b>Last modified:</b> 2009-07-19</p>
21077 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#unord.req">active issues</a> in [unord.req].</p>
21078 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#unord.req">issues</a> in [unord.req].</p>
21079 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
21080 <p><b>Discussion:</b></p>
21082 When I look at the <tt>unordered_*</tt> constructors, I think the complexity is poorly
21083 described and does not follow the style of the rest of the standard.
21087 The complexity for the default constructor is specified as constant.
21088 Actually, it is proportional to <tt>n</tt>, but there are no invocations of
21089 <tt>value_type</tt> constructors or other <tt>value_type</tt> operations.
21093 For the iterator-based constructor the complexity should be:
21097 <i>Complexity:</i> exactly <tt>n</tt> calls to construct <tt>value_type</tt>
21098 from <tt>InputIterator::value_type</tt> (where <tt>n = distance(f,l)</tt>).
21099 The number of calls to <tt>key_equal::operator()</tt> is proportional to
21100 <tt>n</tt> in the average case and <tt>n*n</tt> in the worst case.
21105 <p><b>Proposed resolution:</b></p>
21114 <h3><a name="1176"></a>1176. Make <tt>thread</tt> constructor non-variadic</h3>
21115 <p><b>Section:</b> 30.3.1.2 [thread.thread.constr] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
21116 <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-07-18 <b>Last modified:</b> 2009-07-18</p>
21117 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#thread.thread.constr">active issues</a> in [thread.thread.constr].</p>
21118 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#thread.thread.constr">issues</a> in [thread.thread.constr].</p>
21119 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
21120 <p><b>Discussion:</b></p>
21122 The variadic <tt>thread</tt> constructor is causing controversy, e.g.
21123 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2901.pdf">N2901</a>.
21124 This issue has been created as a placeholder for this course of action.
21127 <blockquote><pre>template <class F<del>, class ...Args</del>> thread(F&& f<del>, Args&&... args</del>);
21128 </pre></blockquote>
21131 See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#929">929</a> for wording which specifies an rvalue-ref signature but
21132 with "decay behavior", but using variadics.
21136 <p><b>Proposed resolution:</b></p>
21145 <h3><a name="1177"></a>1177. Improve "diagnostic required" wording</h3>
21146 <p><b>Section:</b> 20.9.3 [time.duration] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
21147 <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-07-18 <b>Last modified:</b> 2009-10-26</p>
21148 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#time.duration">active issues</a> in [time.duration].</p>
21149 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#time.duration">issues</a> in [time.duration].</p>
21150 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
21151 <p><b>Discussion:</b></p>
21153 "diagnostic required" has been used (by me) for code words meaning "use
21154 <tt>enable_if</tt> to constrain templated functions. This needs to be
21155 improved by referring to the function signature as not participating in
21156 the overload set, and moving this wording to a <i>Remarks</i> paragraph.
21160 2009-10 Santa Cruz:
21170 <p><b>Proposed resolution:</b></p>
21172 This proposed resolution addresses <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#947">947</a> and <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#974">974</a>.
21179 Change 20.9.3.1 [time.duration.cons]:
21183 <pre>template <class Rep2>
21184 explicit duration(const Rep2& r);
21188 <i><del>Requires:</del> <ins>Remarks:</ins></i>
21189 <tt>Rep2</tt> shall be implicitly convertible to <tt>rep</tt> and
21193 <tt>treat_as_floating_point<rep>::value</tt> shall be <tt>true</tt> or
21196 <tt>treat_as_floating_point<Rep2>::value</tt> shall be <tt>false</tt>.
21200 <del>Diagnostic required</del> <ins>If these constraints are not met, this
21201 constructor shall not participate in overload resolution</ins>. [<i>Example:</i>
21203 <blockquote><pre>duration<int, milli> d(3); // OK
21204 duration<int, milli> d(3.5); // error
21205 </pre></blockquote>
21208 — <i>end example</i>]
21212 <i>Effects:</i> Constructs an object of type <tt>duration</tt>.
21216 <i>Postcondition:</i> <tt>count() == static_cast<rep>(r)</tt>.
21221 <pre>template <class Rep2, class Period2>
21222 duration(const duration<Rep2, Period2>& d);
21226 <i><del>Requires:</del> <ins>Remarks:</ins></i> <tt>treat_as_floating_point<rep>::value</tt> shall be <tt>true</tt> or
21227 <tt>ratio_divide<Period2, period>::type::den</tt> shall be 1<del>. Diagnostic
21228 required</del><ins>, else this constructor shall not participate in overload
21229 resolution</ins>. [<i>Note:</i> This requirement prevents implicit truncation error
21230 when converting between integral-based duration types. Such a
21231 construction could easily lead to confusion about the value of the
21232 duration. — <i>end note</i>] [<i>Example:</i>
21235 <blockquote><pre>duration<int, milli> ms(3);
21236 duration<int, micro> us = ms; // OK
21237 duration<int, milli> ms2 = us; // error
21238 </pre></blockquote>
21241 — <i>end example</i>]
21245 <i>Effects:</i> Constructs an object of type <tt>duration</tt>, constructing
21247 <tt>duration_cast<duration>(d).count()</tt>.
21258 Change the following paragraphs in 20.9.3.5 [time.duration.nonmember]:
21262 <pre>template <class Rep1, class Period, class Rep2>
21263 duration<typename common_type<Rep1, Rep2>::type, Period>
21264 operator*(const duration<Rep1, Period>& d, const Rep2& s);
21267 <i><del>Requires</del> <ins>Remarks</ins>:</i> <tt>Rep2</tt> shall be implicitly convertible to
21268 <tt>CR(Rep1, Rep2)</tt><ins>, else this signature shall not participate in
21269 overload resolution</ins>. <del>Diagnostic required.</del>
21272 <pre>template <class Rep1, class Period, class Rep2>
21273 duration<typename common_type<Rep1, Rep2>::type, Period>
21274 operator*(const Rep1& s, const duration<Rep2, Period>& d);
21277 <i><del>Requires</del> <ins>Remarks</ins>:</i> <tt>Rep1</tt> shall be implicitly convertible to
21278 <tt>CR(Rep1, Rep2)</tt><ins>, else this signature shall not participate in
21279 overload resolution</ins>. <del>Diagnostic required.</del>
21282 <pre>template <class Rep1, class Period, class Rep2>
21283 duration<typename common_type<Rep1, Rep2>::type, Period>
21284 operator/(const duration<Rep1, Period>& d, const Rep2& s);
21287 <i><del>Requires</del> <ins>Remarks</ins>:</i> <tt>Rep2</tt> shall be implicitly convertible to
21288 <tt>CR(Rep1, Rep2)</tt> and <tt>Rep2</tt> shall not be an instantiation of
21289 <tt>duration</tt><ins>, else this signature shall not participate in
21290 overload resolution</ins>. <del>Diagnostic required.</del>
21293 <pre>template <class Rep1, class Period, class Rep2>
21294 duration<typename common_type<Rep1, Rep2>::type, Period>
21295 operator%(const duration<Rep1, Period>& d, const Rep2& s);
21298 <i><del>Requires</del> <ins>Remarks</ins>:</i> <tt>Rep2</tt> shall be implicitly convertible to
21299 <tt>CR(Rep1, Rep2)</tt> and <tt>Rep2</tt> shall not be an instantiation of
21300 <tt>duration</tt><ins>, else this signature shall not participate in
21301 overload resolution</ins>. <del>Diagnostic required.</del>
21309 Change the following paragraphs in 20.9.3.7 [time.duration.cast]:
21312 <blockquote><pre>template <class ToDuration, class Rep, class Period>
21313 ToDuration duration_cast(const duration<Rep, Period>& d);
21317 <i><del>Requires</del> <ins>Remarks</ins>:</i> <tt>ToDuration</tt> shall be an instantiation of
21318 <tt>duration</tt><ins>, else this signature shall not participate in
21319 overload resolution</ins>. <del>Diagnostic required.</del>
21326 Change the following paragraphs in 20.9.4.7 [time.point.cast]:
21329 <blockquote><pre>template <class ToDuration, class Clock, class Duration>
21330 time_point<Clock, ToDuration> time_point_cast(const time_point<Clock, Duration>& t);
21334 <i><del>Requires</del> <ins>Remarks</ins>:</i> <tt>ToDuration</tt> shall be an instantiation of
21335 <tt>duration</tt><ins>, else this signature shall not participate in
21336 overload resolution</ins>. <del>Diagnostic required.</del>
21348 <h3><a name="1180"></a>1180. Missing string_type member typedef in class <tt>sub_match</tt></h3>
21349 <p><b>Section:</b> 28.9.1 [re.submatch.members] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
21350 <b>Submitter:</b> Daniel Krügler <b>Opened:</b> 2009-07-25 <b>Last modified:</b> 2009-07-26</p>
21351 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
21352 <p><b>Discussion:</b></p>
21354 The definition of class template <tt>sub_match</tt> is strongly dependent
21355 on the type <tt>basic_string<value_type></tt>, both in interface and effects,
21356 but does not provide a corresponding typedef <tt>string_type</tt>, as e.g.
21357 class <tt>match_results</tt> does, which looks like an oversight to me that
21362 <p><b>Proposed resolution:</b></p>
21367 In the class template <tt>sub_match</tt> synopsis 28.9 [re.submatch]/1
21368 change as indicated:
21371 <blockquote><pre>template <class BidirectionalIterator>
21372 class sub_match : public std::pair<BidirectionalIterator, BidirectionalIterator> {
21374 typedef typename iterator_traits<BidirectionalIterator>::value_type value_type;
21375 typedef typename iterator_traits<BidirectionalIterator>::difference_type difference_type;
21376 typedef BidirectionalIterator iterator;
21377 <ins>typedef basic_string<value_type> string_type;</ins>
21381 difference_type length() const;
21382 operator <del>basic_string<value_type></del><ins>string_type</ins>() const;
21383 <del>basic_string<value_type></del><ins>string_type</ins> str() const;
21384 int compare(const sub_match& s) const;
21385 int compare(const <del>basic_string<value_type></del><ins>string_type</ins>& s) const;
21386 int compare(const value_type* s) const;
21388 </pre></blockquote>
21393 In 28.9.1 [re.submatch.members]/2 change as indicated:
21396 <blockquote><pre>operator <del>basic_string<value_type></del><ins>string_type</ins>() const;
21400 <i>Returns:</i> <tt>matched ? <del>basic_string<value_type></del>
21401 <ins>string_type</ins>(first, second) : <del>basic_string<value_type></del>
21402 <ins>string_type</ins>()</tt>.
21409 In 28.9.1 [re.submatch.members]/3 change as indicated:
21412 <blockquote><pre><del>basic_string<value_type></del><ins>string_type</ins> str() const;
21416 <i>Returns:</i> <tt>matched ? <del>basic_string<value_type></del>
21417 <ins>string_type</ins>(first, second) : <del>basic_string<value_type></del>
21418 <ins>string_type</ins>()</tt>.
21430 <h3><a name="1181"></a>1181. Invalid <tt>sub_match</tt> comparison operators</h3>
21431 <p><b>Section:</b> 28.9.2 [re.submatch.op] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
21432 <b>Submitter:</b> Daniel Krügler <b>Opened:</b> 2009-07-25 <b>Last modified:</b> 2009-07-28</p>
21433 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#re.submatch.op">issues</a> in [re.submatch.op].</p>
21434 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
21435 <p><b>Discussion:</b></p>
21437 Several heterogeneous comparison operators of class template
21438 <tt>sub_match</tt> are specified by return clauses that are not valid
21439 in general. E.g. 28.9.2 [re.submatch.op]/7:
21442 <blockquote><pre>template <class BiIter, class ST, class SA>
21444 const basic_string<
21445 typename iterator_traits<BiIter>::value_type, ST, SA>& lhs,
21446 const sub_match<BiIter>& rhs);
21449 <i>Returns:</i> <tt>lhs == rhs.str()</tt>.
21454 The returns clause would be ill-formed for all cases where
21455 <tt>ST != std::char_traits<iterator_traits<BiIter>::value_type></tt>
21456 or <tt>SA != std::allocator<iterator_traits<BiIter>::value_type></tt>.
21459 The generic character of the comparison was intended, so
21460 there are basically two approaches to fix the problem: The
21461 first one would define the semantics of the comparison
21462 using the traits class <tt>ST</tt> (The semantic of <tt>basic_string::compare</tt>
21463 is defined in terms of the compare function of the corresponding
21464 traits class), the second one would define the semantics of the
21465 comparison using the traits class
21468 <blockquote><pre>std::char_traits<iterator_traits<BiIter>::value_type>
21469 </pre></blockquote>
21472 which is essentially identical to
21475 <blockquote><pre>std::char_traits<sub_match<BiIter>::value_type>
21476 </pre></blockquote>
21479 I suggest to follow the second approach, because
21480 this emphasizes the central role of the <tt>sub_match</tt>
21481 object as part of the comparison and would also
21482 make sure that a <tt>sub_match</tt> comparison using some
21483 <tt>basic_string<char_t, ..></tt> always is equivalent to
21484 a corresponding comparison with a string literal
21485 because of the existence of further overloads (beginning
21486 from 28.9.2 [re.submatch.op]/19). If users really want to
21487 take advantage of their own <tt>traits::compare</tt>, they can
21488 simply write a corresponding compare function that
21493 <p><b>Proposed resolution:</b></p>
21497 In 28.9.2 [re.submatch.op] change as indicated:
21504 If <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1180">1180</a> is accepted:
21508 <pre>template <class BiIter, class ST, class SA>
21510 const basic_string<
21511 typename iterator_traits<BiIter>::value_type, ST, SA>& lhs,
21512 const sub_match<BiIter>& rhs);
21515 7 <i>Returns:</i> <tt><del>lhs</del><ins>typename
21516 sub_match<BiIter>::string_type(lhs.begin(), lhs.end())</ins> ==
21520 <pre>template <class BiIter, class ST, class SA>
21522 const basic_string<
21523 typename iterator_traits<BiIter>::value_type, ST, SA>& lhs,
21524 const sub_match<BiIter>& rhs);
21528 8 <i>Returns:</i> <tt><del>lhs</del><ins>typename
21529 sub_match<BiIter>::string_type(lhs.begin(), lhs.end())</ins> !=
21533 <pre>template <class BiIter, class ST, class SA>
21535 const basic_string<
21536 typename iterator_traits<BiIter>::value_type, ST, SA>& lhs,
21537 const sub_match<BiIter>& rhs);
21541 9 <i>Returns:</i> <tt><del>lhs</del><ins>typename
21542 sub_match<BiIter>::string_type(lhs.begin(), lhs.end())</ins> <
21546 <pre>template <class BiIter, class ST, class SA>
21548 const basic_string<
21549 typename iterator_traits<BiIter>::value_type, ST, SA>& lhs,
21550 const sub_match<BiIter>& rhs);
21554 10 <i>Returns:</i> <tt><del>lhs</del><ins>typename
21555 sub_match<BiIter>::string_type(lhs.begin(), lhs.end())</ins> >
21559 <pre>template <class BiIter, class ST, class SA>
21560 bool operator>=(
21561 const basic_string<
21562 typename iterator_traits<BiIter>::value_type, ST, SA>& lhs,
21563 const sub_match<BiIter>& rhs);
21567 11 <i>Returns:</i> <tt><del>lhs</del><ins>typename
21568 sub_match<BiIter>::string_type(lhs.begin(), lhs.end())</ins> >=
21572 <pre>template <class BiIter, class ST, class SA>
21573 bool operator<=(
21574 const basic_string<
21575 typename iterator_traits<BiIter>::value_type, ST, SA>& lhs,
21576 const sub_match<BiIter>& rhs);
21580 12 <i>Returns:</i> <tt><del>lhs</del><ins>typename
21581 sub_match<BiIter>::string_type(lhs.begin(), lhs.end())</ins> <=
21585 <pre>template <class BiIter, class ST, class SA>
21586 bool operator==(const sub_match<BiIter>& lhs,
21587 const basic_string<
21588 typename iterator_traits<BiIter>::value_type, ST, SA>& rhs);
21592 13 <i>Returns:</i> <tt>lhs.str() == <del>rhs</del><ins>typename
21593 sub_match<BiIter>::string_type(rhs.begin(), rhs.end())</ins></tt>.
21596 <pre>template <class BiIter, class ST, class SA>
21597 bool operator!=(const sub_match<BiIter>& lhs,
21598 const basic_string<
21599 typename iterator_traits<BiIter>::value_type, ST, SA>& rhs);
21603 14 <i>Returns:</i> <tt>lhs.str() != <del>rhs</del><ins>typename
21604 sub_match<BiIter>::string_type(rhs.begin(), rhs.end())</ins></tt>.
21607 <pre>template <class BiIter, class ST, class SA>
21608 bool operator<(const sub_match<BiIter>& lhs,
21609 const basic_string<
21610 typename iterator_traits<BiIter>::value_type, ST, SA>& rhs);
21614 15 <i>Returns:</i> <tt>lhs.str() < <del>rhs</del><ins>typename
21615 sub_match<BiIter>::string_type(rhs.begin(), rhs.end())</ins></tt>.
21618 <pre>template <class BiIter, class ST, class SA>
21619 bool operator>(const sub_match<BiIter>& lhs,
21620 const basic_string<
21621 typename iterator_traits<BiIter>::value_type, ST, SA>& rhs);
21625 16 <i>Returns:</i> <tt>lhs.str() > <del>rhs</del><ins>typename
21626 sub_match<BiIter>::string_type(rhs.begin(), rhs.end())</ins></tt>.
21629 <pre>template <class BiIter, class ST, class SA>
21630 bool operator>=(const sub_match<BiIter>& lhs,
21631 const basic_string<
21632 typename iterator_traits<BiIter>::value_type, ST, SA>& rhs);
21636 17 <i>Returns:</i> <tt>lhs.str() >= <del>rhs</del><ins>typename
21637 sub_match<BiIter>::string_type(rhs.begin(), rhs.end())</ins></tt>.
21640 <pre>template <class BiIter, class ST, class SA>
21641 bool operator<=(const sub_match<BiIter>& lhs,
21642 const basic_string<
21643 typename iterator_traits<BiIter>::value_type, ST, SA>& rhs);
21647 18 <i>Returns:</i> <tt>lhs.str() <= <del>rhs</del><ins>typename
21648 sub_match<BiIter>::string_type(rhs.begin(), rhs.end())</ins></tt>.
21657 If <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1180">1180</a> is <em>not</em> accepted:
21661 <pre>template <class BiIter, class ST, class SA>
21663 const basic_string<
21664 typename iterator_traits<BiIter>::value_type, ST, SA>& lhs,
21665 const sub_match<BiIter>& rhs);
21668 7 <i>Returns:</i> <tt><del>lhs</del><ins>basic_string<typename
21669 sub_match<BiIter>::value_type>(lhs.begin(), lhs.end())</ins> ==
21673 <pre>template <class BiIter, class ST, class SA>
21675 const basic_string<
21676 typename iterator_traits<BiIter>::value_type, ST, SA>& lhs,
21677 const sub_match<BiIter>& rhs);
21681 8 <i>Returns:</i> <tt><del>lhs</del><ins>basic_string<typename
21682 sub_match<BiIter>::value_type>(lhs.begin(), lhs.end())</ins> !=
21686 <pre>template <class BiIter, class ST, class SA>
21688 const basic_string<
21689 typename iterator_traits<BiIter>::value_type, ST, SA>& lhs,
21690 const sub_match<BiIter>& rhs);
21694 9 <i>Returns:</i> <tt><del>lhs</del><ins>basic_string<typename
21695 sub_match<BiIter>::value_type>(lhs.begin(), lhs.end())</ins> <
21699 <pre>template <class BiIter, class ST, class SA>
21701 const basic_string<
21702 typename iterator_traits<BiIter>::value_type, ST, SA>& lhs,
21703 const sub_match<BiIter>& rhs);
21707 10 <i>Returns:</i> <tt><del>lhs</del><ins>basic_string<typename
21708 sub_match<BiIter>::value_type>(lhs.begin(), lhs.end())</ins> >
21712 <pre>template <class BiIter, class ST, class SA>
21713 bool operator>=(
21714 const basic_string<
21715 typename iterator_traits<BiIter>::value_type, ST, SA>& lhs,
21716 const sub_match<BiIter>& rhs);
21720 11 <i>Returns:</i> <tt><del>lhs</del><ins>basic_string<typename
21721 sub_match<BiIter>::value_type>(lhs.begin(), lhs.end())</ins> >=
21725 <pre>template <class BiIter, class ST, class SA>
21726 bool operator<=(
21727 const basic_string<
21728 typename iterator_traits<BiIter>::value_type, ST, SA>& lhs,
21729 const sub_match<BiIter>& rhs);
21733 12 <i>Returns:</i> <tt><del>lhs</del><ins>basic_string<typename
21734 sub_match<BiIter>::value_type>(lhs.begin(), lhs.end())</ins> <=
21738 <pre>template <class BiIter, class ST, class SA>
21739 bool operator==(const sub_match<BiIter>& lhs,
21740 const basic_string<
21741 typename iterator_traits<BiIter>::value_type, ST, SA>& rhs);
21745 13 <i>Returns:</i> <tt>lhs.str() == <del>rhs</del><ins>basic_string<typename
21746 sub_match<BiIter>::value_type>(rhs.begin(), rhs.end())</ins></tt>.
21749 <pre>template <class BiIter, class ST, class SA>
21750 bool operator!=(const sub_match<BiIter>& lhs,
21751 const basic_string<
21752 typename iterator_traits<BiIter>::value_type, ST, SA>& rhs);
21756 14 <i>Returns:</i> <tt>lhs.str() != <del>rhs</del><ins>basic_string<typename
21757 sub_match<BiIter>::value_type>(rhs.begin(), rhs.end())</ins></tt>.
21760 <pre>template <class BiIter, class ST, class SA>
21761 bool operator<(const sub_match<BiIter>& lhs,
21762 const basic_string<
21763 typename iterator_traits<BiIter>::value_type, ST, SA>& rhs);
21767 15 <i>Returns:</i> <tt>lhs.str() < <del>rhs</del><ins>basic_string<typename
21768 sub_match<BiIter>::value_type>(rhs.begin(), rhs.end())</ins></tt>.
21771 <pre>template <class BiIter, class ST, class SA>
21772 bool operator>(const sub_match<BiIter>& lhs,
21773 const basic_string<
21774 typename iterator_traits<BiIter>::value_type, ST, SA>& rhs);
21778 16 <i>Returns:</i> <tt>lhs.str() > <del>rhs</del><ins>basic_string<typename
21779 sub_match<BiIter>::value_type>(rhs.begin(), rhs.end())</ins></tt>.
21782 <pre>template <class BiIter, class ST, class SA>
21783 bool operator>=(const sub_match<BiIter>& lhs,
21784 const basic_string<
21785 typename iterator_traits<BiIter>::value_type, ST, SA>& rhs);
21789 17 <i>Returns:</i> <tt>lhs.str() >= <del>rhs</del><ins>basic_string<typename
21790 sub_match<BiIter>::value_type>(rhs.begin(), rhs.end())</ins></tt>.
21793 <pre>template <class BiIter, class ST, class SA>
21794 bool operator<=(const sub_match<BiIter>& lhs,
21795 const basic_string<
21796 typename iterator_traits<BiIter>::value_type, ST, SA>& rhs);
21800 18 <i>Returns:</i> <tt>lhs.str() <= <del>rhs</del><ins>basic_string<typename
21801 sub_match<BiIter>::value_type>(rhs.begin(), rhs.end())</ins></tt>.
21817 <h3><a name="1182"></a>1182. Unfortunate hash dependencies</h3>
21818 <p><b>Section:</b> 20.7.16 [unord.hash] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
21819 <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-07-28 <b>Last modified:</b> 2009-09-21</p>
21820 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#unord.hash">active issues</a> in [unord.hash].</p>
21821 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#unord.hash">issues</a> in [unord.hash].</p>
21822 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
21823 <p><b>Discussion:</b></p>
21825 The implied library dependencies created by spelling out all the <tt>hash</tt>
21826 template specializations in the <tt><functional></tt> synopsis are unfortunate.
21827 The potential coupling is greatly reduced if the <tt>hash</tt> specialization is
21828 declared in the appropriate header for each library type, as it is much
21829 simpler to forward declare the primary template and provide a single
21830 specialization than it is to implement a <tt>hash</tt> function for a <tt>string</tt> or
21831 <tt>vector</tt> without providing a definition for the whole <tt>string/vector</tt>
21832 template in order to access the necessary bits.
21836 Note that the proposed resolution purely involves moving the
21837 declarations of a few specializations, it specifically does not make any
21838 changes to 20.7.16 [unord.hash].
21842 2009-09-15 Daniel adds:
21849 I suggest to add to the current existing
21850 proposed resolution the following items.
21856 Add to the very first strike-list of the currently suggested resolution
21857 the following lines:
21860 <blockquote><pre><del>template <> struct hash<std::error_code>;</del>
21861 <del>template <> struct hash<std::thread::id>;</del>
21862 </pre></blockquote>
21867 Add the following declarations to 19.5 [syserr], header
21868 <tt><system_error></tt> synopsis after // 19.5.4:
21871 <blockquote><pre><ins>
21872 // 19.5.x hash support
21873 template <class T> struct hash;
21874 template <> struct hash<error_code>;
21876 </pre></blockquote>
21881 Add a new clause 19.5.X (probably after 19.5.4):
21886 19.5.X Hash support [syserr.hash]
21890 template <> struct hash<error_code>;
21894 An explicit specialization of the class template hash (20.7.16 [unord.hash])
21896 for the type <tt>error_code</tt> suitable for using this type as key in
21897 unordered associative
21898 containers (23.5 [unord]).
21899 </ins></blockquote>
21905 Add the following declarations to 30.3.1.1 [thread.thread.id] just after the
21907 the comparison operators:
21910 <blockquote><pre><ins>
21911 template <class T> struct hash;
21912 template <> struct hash<thread::id>;
21913 </ins></pre></blockquote>
21918 Add a new paragraph at the end of 30.3.1.1 [thread.thread.id]:
21923 template <> struct hash<thread::id>;
21927 An explicit specialization of the class template hash (20.7.16 [unord.hash])
21929 for the type <tt>thread::id</tt> suitable for using this type as key in
21930 unordered associative
21931 containers (23.5 [unord]).
21932 </ins></blockquote>
21937 Issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#889">889</a> independently suggests moving the specialization
21938 <tt>std::hash<std::thread::id></tt> to header <tt><thread></tt>.
21944 <p><b>Proposed resolution:</b></p>
21946 Strike the following specializations declared in the <tt><functional></tt>
21947 synopsis p2 20.7 [function.objects]
21950 <blockquote><pre><del>template <> struct hash<std::string>;</del>
21951 <del>template <> struct hash<std::u16string>;</del>
21952 <del>template <> struct hash<std::u32string>;</del>
21953 <del>template <> struct hash<std::wstring>;</del>
21955 <del>template <class Allocator> struct hash<std::vector<bool, Allocator> >;</del>
21956 <del>template <std::size_t N> struct hash<std::bitset<N> >;</del>
21957 </pre></blockquote>
21960 Add the following declarations to the synopsis of <tt><string></tt> in
21961 21.3 [string.classes]
21964 <blockquote><pre><ins>// 21.4.x hash support
21965 template <class T> struct hash;
21966 template <> struct hash<string>;
21967 template <> struct hash<u16string>;
21968 template <> struct hash<u32string>;
21969 template <> struct hash<wstring>;</ins>
21970 </pre></blockquote>
21973 Add a new clause 21.4.X
21978 21.4.X Hash support [basic.string.hash]
21981 <pre>template <> struct hash<string>;
21982 template <> struct hash<u16string>;
21983 template <> struct hash<u32string>;
21984 template <> struct hash<wstring>;
21988 Explicit specializations of the class template hash (20.7.16 [unord.hash])
21989 shall be provided for the types <tt>string</tt>, <tt>u16string</tt>,
21990 <tt>u32string</tt> and <tt>wstring</tt> suitable for using these types as keys in
21991 unordered associative containers (23.5 [unord]).
21996 Add the following declarations to the synopsis of <tt><vector></tt> in
22000 <blockquote><pre><ins>
22001 // 21.4.x hash support
22002 template <class T> struct hash;
22003 template <class Allocator> struct hash<vector<bool, Allocator>>;
22004 </ins></pre></blockquote>
22007 Add a new paragraph to the end of 23.3.7 [vector.bool]
22010 <blockquote><pre>template <class Allocator> struct hash<vector<bool, Allocator>>;
22013 A partial specialization of the class template hash (20.7.16 [unord.hash])
22014 shall be provided for vectors of boolean values suitable for use as a key
22015 in unordered associative containers (23.5 [unord]).
22020 Add the following declarations to the synopsis of <tt><bitset></tt>
22021 in 20.3.7 [template.bitset]
22024 <blockquote><pre><ins>
22025 // 20.3.6.X hash support
22026 template <class T> struct hash;
22027 template <size_t N> struct hash<bitset<N> >;
22028 </ins></pre></blockquote>
22031 Add a new subclause 20.3.6.X [bitset.hash]
22036 20.3.6.X bitset hash support [bitset.hash]
22039 <pre>template <size_t N> struct hash<bitset<N> >;
22043 A partial specialization of the class template hash
22044 (20.7.16 [unord.hash]) shall be provided for bitsets suitable for use as a key in
22045 unordered associative containers (23.5 [unord]).
22055 <h3><a name="1183"></a>1183. <tt>basic_ios::set_rdbuf</tt> may break class invariants</h3>
22056 <p><b>Section:</b> 27.5.4.2 [basic.ios.members] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
22057 <b>Submitter:</b> Daniel Krügler <b>Opened:</b> 2009-07-28 <b>Last modified:</b> 2009-10-22</p>
22058 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#basic.ios.members">active issues</a> in [basic.ios.members].</p>
22059 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#basic.ios.members">issues</a> in [basic.ios.members].</p>
22060 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
22061 <p><b>Discussion:</b></p>
22063 The protected member function <tt>set_rdbuf</tt> had been added during the
22064 process of adding move and swap semantics to IO classes. A relevant
22065 property of this function is described by it's effects in
22066 27.5.4.2 [basic.ios.members]/19:
22070 <i>Effects:</i> Associates the <tt>basic_streambuf</tt> object pointed to by sb with
22071 this stream without calling <tt>clear()</tt>.
22075 This means that implementors of or those who derive from existing IO classes
22076 could cause an internal state where the stream buffer could be 0, but the
22077 IO class has the state <tt>good()</tt>. This would break several currently existing
22078 implementations which rely on the fact that setting a stream buffer via the
22079 currently only ways, i.e. either by calling
22082 <blockquote><pre>void init(basic_streambuf<charT,traits>* sb);
22083 </pre></blockquote>
22089 <blockquote><pre>basic_streambuf<charT,traits>* rdbuf(basic_streambuf<charT,traits>* sb);
22090 </pre></blockquote>
22093 to set <tt>rdstate()</tt> to <tt>badbit</tt>, if the buffer is 0. This has the effect that many
22094 internal functions can simply check <tt>rdstate()</tt> instead of <tt>rdbuf()</tt> for being 0.
22098 I therefore suggest that a requirement is added for callers of <tt>set_rdbuf</tt> to
22103 2009-10 Santa Cruz:
22108 Moved to Open. Martin volunteers to provide new wording, where
22109 <tt>set_rdbuf()</tt> sets the <tt>badbit</tt> but does not cause an
22110 exception to be thrown like a call to <tt>clear()</tt> would.
22114 2009-10-20 Martin provides wording:
22120 <p><b>Proposed resolution:</b></p>
22122 Change 27.5.4.2 [basic.ios.members] around p. 19 as indicated:
22125 <blockquote><pre>void set_rdbuf(basic_streambuf<charT, traits>* sb);
22130 <i>Effects:</i> Associates the <tt>basic_streambuf</tt> object pointed
22131 to by <tt>sb</tt> with this stream without calling <tt>clear()</tt>.
22132 <i>Postconditions:</i> <tt>rdbuf() == sb</tt>.
22136 <i>Effects:</i> As if:
22139 <blockquote><pre><ins>
22140 iostate state = rdstate();
22142 catch(ios_base::failure) {
22143 if (0 == (state & ios_base::badbit))
22146 </ins></pre></blockquote>
22149 <i>Throws:</i> Nothing.
22156 <p><b>Rationale:</b></p>
22157 We need to be able to call <tt>set_rdbuf()</tt> on stream objects
22158 for which (<tt>rdbuf() == 0</tt>) holds without causing <tt>ios_base::failure</tt> to
22159 be thrown. We also don't want <tt>badbit</tt> to be set as a result of
22160 setting <tt>rdbuf()</tt> to 0 if it wasn't set before the call. This changed
22161 Effects clause maintains the current behavior (as of N2914) without
22162 requiring that <tt>sb</tt> be non-null.
22169 <h3><a name="1185"></a>1185. iterator categories and output iterators</h3>
22170 <p><b>Section:</b> 24.2 [iterator.requirements] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
22171 <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-07-31 <b>Last modified:</b> 2009-07-31</p>
22172 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#iterator.requirements">active issues</a> in [iterator.requirements].</p>
22173 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#iterator.requirements">issues</a> in [iterator.requirements].</p>
22174 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
22175 <p><b>Discussion:</b></p>
22177 (wording relative to
22178 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2723.pdf">N2723</a>
22179 pending new working paper)
22183 According to p3 24.2 [iterator.requirements], Forward iterators,
22184 Bidirectional iterators and Random Access iterators all satisfy the
22185 requirements for an Output iterator:
22189 XXX iterators satisfy all the requirements of the input and output iterators
22190 and can be used whenever either kind is specified ...
22194 Meanwhile, p4 goes on to contradict this:
22198 Besides its category, a forward, bidirectional, or random access
22199 iterator can also be mutable or constant...
22203 ... Constant iterators do not satisfy the requirements for output iterators
22207 The latter seems to be the overriding concern, as the iterator tag
22208 hierarchy does not define <tt>forward_iterator_tag</tt> as multiply derived from
22209 both <tt>input_iterator_tag</tt> and <tt>output_iterator_tag</tt>.
22213 The work on concepts for iterators showed us that output iterator really
22214 is fundamentally a second dimension to the iterator categories, rather
22215 than part of the linear input -> forward -> bidirectional ->
22216 random-access sequence. It would be good to clear up these words to
22217 reflect that, and separately list output iterator requirements in the
22218 requires clauses for the appropriate algorithms and operations.
22222 <p><b>Proposed resolution:</b></p>
22229 <h3><a name="1186"></a>1186. Forward list could model a stack</h3>
22230 <p><b>Section:</b> 23.3.5.3 [stack] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#NAD%20Concepts">Tentatively NAD Concepts</a>
22231 <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-07-31 <b>Last modified:</b> 2009-11-02</p>
22232 <p><b>Discussion:</b></p>
22234 The library template <tt>forward_list</tt> could easily model the idea of a
22235 <tt>stack</tt>, where the operations work on the front of the list rather than
22236 the back. However, the standard library <tt>stack</tt> adaptor cannot support
22241 It would be relatively easy to write a partial specialization for <tt>stack</tt>
22242 to support <tt>forward_list</tt>, but that opens the question of which header to
22243 place it in. A much better solution would be to add a <tt>concept_map</tt> for
22244 the <tt>StackLikeContainer</tt> concept to the <tt><forward_list></tt> header and then
22245 everything just works, including a user's own further uses in a
22246 stack-like context.
22250 Therefore while I am submitting the issue now so that it is on record, I
22251 <em>strongly recommend</em> we resolve as "NAD Concepts" as any non-concepts
22252 based solution will be inferior to the final goal, and the feature is
22253 not so compelling it must be supported ahead of the concepts-based
22258 2009-11-02 Howard adds:
22263 Moved to Tentatively NAD Concepts after 5 positive votes on c++std-lib.
22267 <p><b>Proposed resolution:</b></p>
22274 <h3><a name="1187"></a>1187. std::decay</h3>
22275 <p><b>Section:</b> 20.6.7 [meta.trans.other] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
22276 <b>Submitter:</b> Jason Merrill <b>Opened:</b> 2009-08-07 <b>Last modified:</b> 2009-08-22</p>
22277 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#meta.trans.other">issues</a> in [meta.trans.other].</p>
22278 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
22279 <p><b>Discussion:</b></p>
22281 I notice that <tt>std::decay</tt> is specified to strip the cv-quals from
22282 anything but an array or pointer. This seems incorrect for values of
22283 class type, since class rvalues can have cv-qualified type (3.10 [basic.lval]/9).
22287 2009-08-09 Howard adds:
22292 See the thread starting with c++std-lib-24568 for further discussion. And
22293 here is a convenience link to the
22294 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2069.html">original proposal</a>.
22295 Also see the closely related issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#705">705</a>.
22299 <p><b>Proposed resolution:</b></p>
22302 Add a note to <tt>decay</tt> in 20.6.7 [meta.trans.other]:
22306 [<i>Note:</i> This behavior is similar to the lvalue-to-rvalue (4.1),
22307 array-to-pointer (4.2), and function-to-pointer (4.3) conversions
22308 applied when an lvalue expression is used as an rvalue, but also strips
22309 cv-qualifiers from class types in order to more closely model by-value
22310 argument passing. — <i>end note</i>]
22321 <h3><a name="1188"></a>1188. Unordered containers should have a minimum load factor as well as a maximum</h3>
22322 <p><b>Section:</b> 23.2.5 [unord.req], 23.5 [unord] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
22323 <b>Submitter:</b> Matt Austern <b>Opened:</b> 2009-08-10 <b>Last modified:</b> 2009-08-11</p>
22324 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#unord.req">active issues</a> in [unord.req].</p>
22325 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#unord.req">issues</a> in [unord.req].</p>
22326 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
22327 <p><b>Discussion:</b></p>
22329 Unordered associative containers have a notion of a maximum load factor:
22330 when the number of elements grows large enough, the containers
22331 automatically perform a rehash so that the number of elements per bucket
22332 stays below a user-specified bound. This ensures that the hash table's
22333 performance characteristics don't change dramatically as the size
22338 For similar reasons, Google has found it useful to specify a minimum
22339 load factor: when the number of elements shrinks by a large enough, the
22340 containers automatically perform a rehash so that the number of elements
22341 per bucket stays above a user-specified bound. This is useful for two
22342 reasons. First, it prevents wasting a lot of memory when an unordered
22343 associative container grows temporarily. Second, it prevents amortized
22344 iteration time from being arbitrarily large; consider the case of a hash
22345 table with a billion buckets and only one element. (This was discussed
22346 even before TR1 was published; it was TR issue 6.13, which the LWG
22347 closed as NAD on the grounds that it was a known design feature.
22348 However, the LWG did not consider the approach of a minimum load
22353 The only interesting question is when shrinking is allowed. In principle
22354 the cleanest solution would be shrinking on erase, just as we grow on
22355 insert. However, that would be a usability problem; it would break a
22356 number of common idioms involving erase. Instead, Google's hash tables
22357 only shrink on insert and rehash.
22361 The proposed resolution allows, but does not require, shrinking in
22362 rehash, mostly because a postcondition for rehash that involves the
22363 minimum load factor would be fairly complicated. (It would probably have
22364 to involve a number of special cases and it would probably have to
22365 mention yet another parameter, a minimum bucket count.)
22369 The current behavior is equivalent to a minimum load factor of 0. If we
22370 specify that 0 is the default, this change will have no impact on
22371 backward compatibility.
22375 <p><b>Proposed resolution:</b></p>
22377 Add two new rows, and change rehash's postcondition in the unordered
22378 associative container requirements table in 23.2.5 [unord.req]:
22383 <caption>Table 87 — Unordered associative container requirements
22384 (in addition to container)</caption>
22387 <th>Expression</th><th>Return type</th><th>Assertion/note pre-/post-condition</th>
22388 <th>Complexity</th>
22392 <tt>a.min_load_factor()</tt>
22398 Returns a non-negative number that the container attempts to keep the
22399 load factor greater than or equal to. The container automatically
22400 decreases the number of buckets as necessary to keep the load factor
22409 <td><ins><tt>a.min_load_factor(z)</tt></ins></td>
22410 <td><ins><tt>void</tt></ins></td>
22411 <td><ins>Pre: <tt>z</tt> shall be non-negative. Changes the container's minimum
22412 load factor, using <tt>z</tt> as a hint. [<i>Footnote:</i> the minimum
22413 load factor should be significantly smaller than the maximum.
22414 If <tt>z</tt> is too large, the implementation may reduce it to a more sensible value.]
22421 <td><tt>a.rehash(n)</tt></td>
22422 <td><tt>void</tt></td>
22424 Post: <ins><tt>a.bucket_count() >= n</tt>, and <tt>a.size() <= a.bucket_count()
22425 * a.max_load_factor()</tt>. [<i>Footnote:</i> It is intentional that the
22426 postcondition does not mention the minimum load factor.
22427 This member function is primarily intended for cases where the user knows
22428 that the container's size will increase soon, in which case the container's
22429 load factor will temporarily fall below <tt>a.min_load_factor()</tt>.]</ins>
22431 <tt>a.bucket_cout > a.size() / a.max_load_factor()</tt> and <tt>a.bucket_count()
22436 Average case linear in <tt>a.size()</tt>, worst case quadratic.
22443 Add a footnote to 23.2.5 [unord.req] p12:
22448 The insert members shall not affect the validity of references to
22449 container elements, but may invalidate all iterators to the container.
22450 The erase members shall invalidate only iterators and references to the
22455 [A consequence of these requirements is that while insert may change the
22456 number of buckets, erase may not. The number of buckets may be reduced
22457 on calls to insert or rehash.]
22458 </ins></blockquote>
22462 Change paragraph 13:
22466 The insert members shall not affect the validity of iterators if
22467 <del><tt>(N+n) < z * B</tt></del> <ins><tt>zmin * B <= (N+n) <= zmax * B</tt></ins>,
22468 where <tt>N</tt> is the number of elements in
22469 the container prior to the insert operation, <tt>n</tt> is the number of
22470 elements inserted, <tt>B</tt> is the container's bucket count,
22471 <ins><tt>zmin</tt> is the container's minimum load factor,</ins>
22472 and <tt>z<ins>max</ins></tt> is the container's maximum load factor.
22476 Add to the <tt>unordered_map</tt> class synopsis in section 23.5.1 [unord.map],
22477 the <tt>unordered_multimap</tt> class synopsis
22478 in 23.5.2 [unord.multimap], the <tt>unordered_set</tt> class synopsis in
22479 23.5.3 [unord.set], and the <tt>unordered_multiset</tt> class synopsis
22480 in 23.5.4 [unord.multiset]:
22483 <blockquote><pre><ins>
22484 float min_load_factor() const;
22485 void min_load_factor(float z);
22486 </ins></pre></blockquote>
22489 In 23.5.1.1 [unord.map.cnstr], 23.5.2.1 [unord.multimap.cnstr], 23.5.3.1 [unord.set.cnstr], and
22490 23.5.4.1 [unord.multiset.cnstr], change:
22494 ... <tt>max_load_factor()</tt> returns 1.0 <ins>and
22495 <tt>min_load_factor()</tt> returns 0</ins>.
22503 <h3><a name="1189"></a>1189. Awkward interface for changing the number of buckets in an unordered associative container</h3>
22504 <p><b>Section:</b> 23.2.5 [unord.req], 23.5 [unord] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Tentatively Ready</a>
22505 <b>Submitter:</b> Matt Austern <b>Opened:</b> 2009-08-10 <b>Last modified:</b> 2009-10-28</p>
22506 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#unord.req">active issues</a> in [unord.req].</p>
22507 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#unord.req">issues</a> in [unord.req].</p>
22508 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Tentatively%20Ready">Tentatively Ready</a> status.</p>
22509 <p><b>Discussion:</b></p>
22511 Consider a typical use case: I create an <tt>unordered_map</tt> and then start
22512 adding elements to it one at a time. I know that it will eventually need
22513 to store a few million elements, so, for performance reasons, I would
22514 like to reserve enough capacity that none of the calls to <tt>insert</tt> will
22519 Unfortunately, the existing interface makes this awkward. The user
22520 naturally sees the problem in terms of the number of elements, but the
22521 interface presents it as buckets. If <tt>m</tt> is the map and <tt>n</tt> is the expected
22522 number of elements, this operation is written <tt>m.rehash(n /
22523 m.max_load_factor())</tt> — not very novice friendly.
22527 2009-09-30 Daniel adds:
22532 I recommend to replace "<tt>resize</tt>" by a different name like
22533 "<tt>reserve</tt>", because that would better match the intended
22534 use-case. Rational: Any existing resize function has the on-success
22535 post-condition that the provided size is equal to <tt>size()</tt>, which
22536 is not satisfied for the proposal. Reserve seems to fit the purpose of
22537 the actual renaming suggestion.
22541 2009-10-28 Ganesh summarizes alternative resolutions and expresses a
22542 strong preference for the second (and opposition to the first):
22550 In the unordered associative container requirements (23.2.5 [unord.req]),
22552 rehash and replace it with:
22557 <caption>Table 87 — Unordered associative container requirements
22558 (in addition to container)</caption>
22561 <th>Expression</th><th>Return type</th><th>Assertion/note pre-/post-condition</th>
22562 <th>Complexity</th>
22565 <td><tt>a.<del>rehash</del><ins>reserve</ins>(n)</tt></td>
22566 <td><tt>void</tt></td>
22568 Post: <tt>a.bucket_count > <ins>max(</ins>a.size()<ins>, n)</ins>
22569 / a.max_load_factor()</tt><del> and <tt>a.bucket_count()
22570 >= n</tt></del>.
22573 Average case linear in <tt>a.size()</tt>, worst case quadratic.
22580 Make the corresponding change in the class synopses in 23.5.1
22581 [unord.map], 23.5.2 [unord.multimap], 23.5.3 [unord.set], and 23.5.4
22588 In 23.2.5 [unord.req]/9, table 98, append a new row after the last one:
22593 <caption>Table 87 — Unordered associative container requirements
22594 (in addition to container)</caption>
22597 <th>Expression</th><th>Return type</th><th>Assertion/note pre-/post-condition</th>
22598 <th>Complexity</th>
22601 <td><tt>a.rehash(n)</tt></td>
22602 <td><tt>void</tt></td>
22604 Post: <tt>a.bucket_count > a.size()
22605 / a.max_load_factor()</tt> and <tt>a.bucket_count()
22609 Average case linear in <tt>a.size()</tt>, worst case quadratic.
22614 <tt>a.reserve(n)</tt>
22620 Same as <tt>a.rehash(ceil(n / a.max_load_factor()))</tt>
22623 Average case linear in <tt>a.size()</tt>, worst case quadratic.
22630 In 23.5.1 [unord.map]/3 in the definition of class template <tt>unordered_map</tt>, in
22631 23.5.2 [unord.multimap]/3 in the definition of class template <tt>unordered_multimap</tt>, in
22632 23.5.3 [unord.set]/3 in the definition of class template <tt>unordered_set</tt> and in
22633 23.5.4 [unord.multiset]/3 in the definition of class template <tt>unordered_multiset</tt>, add the
22634 following line after member function <tt>rehash()</tt>:
22637 <blockquote><pre>void reserve(size_type n);
22638 </pre></blockquote>
22651 Moved to Tentatively Ready after 5 votes in favor of Ganesh's option 2 above.
22652 The original proposed wording now appears here:
22657 Informally: instead of providing <tt>rehash(n)</tt> provide <tt>resize(n)</tt>, with the
22658 semantics "make the container a good size for <tt>n</tt> elements".
22662 In the unordered associative container requirements (23.2.5 [unord.req]),
22664 rehash and replace it with:
22669 <caption>Table 87 — Unordered associative container requirements
22670 (in addition to container)</caption>
22673 <th>Expression</th><th>Return type</th><th>Assertion/note pre-/post-condition</th>
22674 <th>Complexity</th>
22677 <td><tt>a.<del>rehash</del><ins>resize</ins>(n)</tt></td>
22678 <td><tt>void</tt></td>
22680 Post: <tt>a.bucket_count > <ins>max(</ins>a.size()<ins>, n)</ins>
22681 / a.max_load_factor()</tt><del> and <tt>a.bucket_count()
22682 >= n</tt></del>.
22685 Average case linear in <tt>a.size()</tt>, worst case quadratic.
22691 <p>Make the corresponding change in the class synopses in 23.5.1
22692 [unord.map], 23.5.2 [unord.multimap], 23.5.3 [unord.set], and 23.5.4
22700 <p><b>Proposed resolution:</b></p>
22702 In 23.2.5 [unord.req]/9, table 98, append a new row after the last one:
22707 <caption>Table 87 — Unordered associative container requirements
22708 (in addition to container)</caption>
22711 <th>Expression</th><th>Return type</th><th>Assertion/note pre-/post-condition</th>
22712 <th>Complexity</th>
22715 <td><tt>a.rehash(n)</tt></td>
22716 <td><tt>void</tt></td>
22718 Post: <tt>a.bucket_count > a.size()
22719 / a.max_load_factor()</tt> and <tt>a.bucket_count()
22723 Average case linear in <tt>a.size()</tt>, worst case quadratic.
22728 <tt>a.reserve(n)</tt>
22734 Same as <tt>a.rehash(ceil(n / a.max_load_factor()))</tt>
22737 Average case linear in <tt>a.size()</tt>, worst case quadratic.
22744 In 23.5.1 [unord.map]/3 in the definition of class template <tt>unordered_map</tt>, in
22745 23.5.2 [unord.multimap]/3 in the definition of class template <tt>unordered_multimap</tt>, in
22746 23.5.3 [unord.set]/3 in the definition of class template <tt>unordered_set</tt> and in
22747 23.5.4 [unord.multiset]/3 in the definition of class template <tt>unordered_multiset</tt>, add the
22748 following line after member function <tt>rehash()</tt>:
22751 <blockquote><pre>void reserve(size_type n);
22752 </pre></blockquote>
22759 <h3><a name="1190"></a>1190. Setting the maximum load factor should return the previous value</h3>
22760 <p><b>Section:</b> 23.2.5 [unord.req], 23.5 [unord] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
22761 <b>Submitter:</b> Matt Austern <b>Opened:</b> 2009-08-10 <b>Last modified:</b> 2009-08-11</p>
22762 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#unord.req">active issues</a> in [unord.req].</p>
22763 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#unord.req">issues</a> in [unord.req].</p>
22764 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
22765 <p><b>Discussion:</b></p>
22767 The unordered associative container requirements table specifies that
22768 <tt>a.set_max_load_factor(z)</tt> has return type <tt>void</tt>. However, there is a
22769 useful piece of information to return: the previous value. Users who
22770 don't need it can always ignore it.
22774 <p><b>Proposed resolution:</b></p>
22776 In the unordered associative container requirements table, change:
22781 <caption>Table 87 — Unordered associative container requirements
22782 (in addition to container)</caption>
22785 <th>Expression</th><th>Return type</th><th>Assertion/note pre-/post-condition</th>
22786 <th>Complexity</th>
22790 <td><tt>a.max_load_factor(z)</tt></td>
22791 <td><tt><del>void</del> <ins>float</ins></tt></td>
22792 <td>Pre: <tt>z</tt> shall be positive. Changes the container's maximum
22793 <del>load</del> load factor, using <tt>z</tt> as a hint.
22794 <ins>Returns: the previous value of
22795 <tt>a.max_load_factor()</tt>.</ins>
22806 Change the return type of <tt>set_max_load_factor</tt>
22807 in the class synopses in 23.5.1 [unord.map], 23.5.2 [unord.multimap], 23.5.3 [unord.set],
22808 and 23.5.4 [unord.multiset].
22812 If issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1188">1188</a> is also accepted, make the same changes for
22813 <tt>min_load_factor</tt>.
22821 <h3><a name="1191"></a>1191. <tt>tuple get</tt> API should respect rvalues</h3>
22822 <p><b>Section:</b> 20.5.2.6 [tuple.elem] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
22823 <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-08-18 <b>Last modified:</b> 2009-10-31</p>
22824 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
22825 <p><b>Discussion:</b></p>
22827 The <tt>tuple get</tt> API should respect rvalues. This would allow for moving a
22828 single element out of a <tt>tuple</tt>-like type.
22832 2009-10-30 Alisdair adds:
22838 The issue of rvalue overloads of get for tuple-like types was briefly
22839 discussed in Santa Cruz.
22843 The feedback was this would be welcome, but we need full wording for the
22844 other types (<tt>pair</tt> and <tt>array</tt>) before advancing.
22848 I suggest the issue moves to Open from New as it has been considered,
22849 feedback given, and it has not (yet) been rejected as NAD.
22855 <p><b>Proposed resolution:</b></p>
22857 Add the following signature to p2 20.5.1 [tuple.general]
22860 <blockquote><pre><ins>
22861 template <size_t I, class ... Types>
22862 typename tuple_element<I, tuple<Types...> >::type&& get(tuple<Types...> &&);
22863 </ins></pre></blockquote>
22866 And again to 20.5.2.6 [tuple.elem].
22869 <blockquote><pre><ins>
22870 template <size_t I, class ... Types>
22871 typename tuple_element<I, tuple<Types...> >::type&& get(tuple<Types...>&& t);
22876 <i>Effects:</i> Equivalent to <tt>return std::forward<typename tuple_element<I, tuple<Types...> >::type&&>(get<I>(t));</tt>
22881 [<i>Note:</i> If a <tt>T</tt> in <tt>Types</tt> is some reference type <tt>X&</tt>,
22882 the return type is <tt>X&</tt>, not <tt>X&&</tt>.
22883 However, if the element type is non-reference type <tt>T</tt>,
22884 the return type is <tt>T&&</tt>. — <i>end note</i>]
22891 Add the following signature to p1 20.3 [utility]
22894 <blockquote><pre><ins>
22895 template <size_t I, class T1, class T2>
22896 typename tuple_element<I, pair<T1,T2> >::type&& get(pair<T1, T2>&&);
22897 </ins></pre></blockquote>
22900 And to p5 20.3.5 [pair.astuple]
22903 <blockquote><pre><ins>
22904 template <size_t I, class T1, class T2>
22905 typename tuple_element<I, pair<T1,T2> >::type&& get(pair<T1, T2>&& p);
22910 <i>Returns:</i> If <tt>I == 0</tt> returns <tt>std::forward<T1&&>(p.first)</tt>;
22912 returns <tt>std::forward<T2&&>(p.second)</tt>; otherwise the program is ill-formed.
22916 <i>Throws:</i> Nothing.
22924 Add the following signature to 23.3 [sequences] <tt><array></tt> synopsis
22927 <blockquote><pre><ins>template <size_t I, class T, size_t N>
22928 T&& get(array<T,N> &&);
22929 </ins></pre></blockquote>
22932 And after p8 23.3.1.7 [array.tuple]
22935 <blockquote><pre><ins>template <size_t I, class T, size_t N>
22936 T&& get(array<T,N> && a);
22940 <i>Effects:</i> Equivalent to <tt>return std::move(get<I>(a));</tt>
22941 </ins></blockquote>
22950 <h3><a name="1192"></a>1192. <tt>basic_string</tt> missing definitions for <tt>cbegin</tt> / <tt>cend</tt> / <tt>crbegin</tt> / <tt>crend</tt></h3>
22951 <p><b>Section:</b> 21.4.3 [string.iterators] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Tentatively Ready</a>
22952 <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2009-08-14 <b>Last modified:</b> 2009-10-29</p>
22953 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Tentatively%20Ready">Tentatively Ready</a> status.</p>
22954 <p><b>Discussion:</b></p>
22956 Unlike the containers in clause 23, <tt>basic_string</tt> has definitions for
22957 <tt>begin()</tt> and <tt>end()</tt>, but these have not been updated to include <tt>cbegin</tt>,
22958 <tt>cend</tt>, <tt>crbegin</tt> and <tt>crend</tt>.
22967 Moved to Tentatively NAD after 5 positive votes on c++std-lib. Added
22972 2009-10-28 Alisdair disagrees:
22978 I'm going to have to speak up as the dissenting voice.
22982 I agree the issue could be handled editorially, and that would be my
22983 preference if Pete feels this is appropriate. Failing that, I really
22984 think this issue should be accepted and moved to ready. The other
22985 begin/end functions all have a semantic definition for this template,
22986 and it is confusing if a small few are missing.
22990 I agree that an alternative would be to strike <em>all</em> the definitions for
22991 <tt>begin/end/rbegin/rend</tt> and defer completely to the requirements tables in
22992 clause 23. I think that might be confusing without a forward reference
22993 though, as those tables are defined in a *later* clause than the
22994 basic_string template itself. If someone wants to pursue this I would
22995 support it, but recommend it as a separate issue.
22999 So my preference is strongly to move Ready over NAD, and a stronger
23000 preference for NAD Editorial if Pete is happy to make these changes.
23011 Moved to Tentatively Ready after 5 positive votes on c++std-lib. Removed
23012 rationale to mark it NAD. :-)
23017 <p><b>Proposed resolution:</b></p>
23019 Add to 21.4.3 [string.iterators]
23022 <blockquote><pre>iterator begin();
23023 const_iterator begin() const;
23024 <ins>const_iterator cbegin() const;</ins>
23029 <pre>iterator end();
23030 const_iterator end() const;
23031 <ins>const_iterator cend() const;</ins>
23036 <pre>reverse_iterator rbegin();
23037 const_reverse_iterator rbegin() const;
23038 <ins>const_reverse_iterator crbegin() const;</ins>
23043 <pre>reverse_iterator rend();
23044 const_reverse_iterator rend() const;
23045 <ins>const_reverse_iterator crend() const;</ins>
23055 <h3><a name="1193"></a>1193. <tt>default_delete</tt> cannot be instantiated with incomplete types</h3>
23056 <p><b>Section:</b> 20.8.14.1 [unique.ptr.dltr] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
23057 <b>Submitter:</b> Daniel Krügler <b>Opened:</b> 2009-08-18 <b>Last modified:</b> 2009-08-22</p>
23058 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
23059 <p><b>Discussion:</b></p>
23061 According to the general rules of 17.6.3.8 [res.on.functions]/2 b 5 the effects
23062 are undefined, if an incomplete type is used to instantiate a library template. But neither in
23063 20.8.14.1 [unique.ptr.dltr] nor
23064 in any other place of the standard such explicit allowance is given.
23065 Since this template is intended to be instantiated with incomplete
23071 <p><b>Proposed resolution:</b></p>
23073 Add two new paragraphs directly to 20.8.14.1 [unique.ptr.dltr] (before
23074 20.8.14.1.1 [unique.ptr.dltr.dflt]) with the following
23080 The class template <tt>default_delete</tt> serves as the default deleter (destruction policy) for
23081 the class template <tt>unique_ptr</tt>.
23085 The template parameter <tt>T</tt> of <tt>default_delete</tt> may be an incomplete type.
23094 <h3><a name="1194"></a>1194. Unintended <tt>queue</tt> constructor</h3>
23095 <p><b>Section:</b> 23.3.5 [container.adaptors] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
23096 <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-08-20 <b>Last modified:</b> 2009-10-20</p>
23097 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#container.adaptors">active issues</a> in [container.adaptors].</p>
23098 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#container.adaptors">issues</a> in [container.adaptors].</p>
23099 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
23100 <p><b>Discussion:</b></p>
23102 23.3.5.1.1 [queue.defn] has the following <tt>queue</tt> constructor:
23105 <blockquote><pre>template <class Alloc> explicit queue(const Alloc&);
23106 </pre></blockquote>
23109 This will be implemented like so:
23112 <blockquote><pre>template <class Alloc> explicit queue(const Alloc& a) : c(a) {}
23113 </pre></blockquote>
23116 The issue is that <tt>Alloc</tt> can be anything that a container will construct
23117 from, for example an <tt>int</tt>. Is this intended to compile?
23120 <blockquote><pre>queue<int> q(5);
23121 </pre></blockquote>
23124 Before the addition of this constructor, <tt>queue<int>(5)</tt> would not compile.
23125 I ask, not because this crashes, but because it is new and appears to be
23126 unintended. We do not want to be in a position of accidently introducing this
23127 "feature" in C++0X and later attempting to remove it.
23131 I've picked on <tt>queue</tt>. <tt>priority_queue</tt> and <tt>stack</tt> have
23132 the same issue. Is it useful to create a <tt>priority_queue</tt> of 5
23133 identical elements?
23137 Daniel, Howard and Pablo collaborated on the proposed wording.
23142 2009-10 Santa Cruz:
23152 <p><b>Proposed resolution:</b></p>
23155 This resolution includes a semi-editorial clean up, giving definitions to members
23156 which in some cases weren't defined since C++98.
23157 This resolution also offers editorially different wording for <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#976">976</a>,
23158 and it also provides wording for <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1196">1196</a>.
23163 Change container.adaptors, p1:
23167 The container adaptors each take a <tt>Container</tt> template parameter, and
23168 each constructor takes a <tt>Container</tt> reference argument. This container is
23169 copied into the <tt>Container</tt> member of each adaptor. If the container takes
23170 an allocator, then a compatible allocator may be passed in to the
23171 adaptor's constructor. Otherwise, normal copy or move construction is
23172 used for the container argument. <del>[<i>Note:</i> it is not necessary for an
23173 implementation to distinguish between the one-argument constructor that
23174 takes a <tt>Container</tt> and the one- argument constructor that takes an
23175 allocator_type. Both forms use their argument to construct an instance
23176 of the container. — <i>end note</i>]</del>
23180 Change queue.defn, p1:
23183 <blockquote><pre>template <class T, class Container = deque<T> >
23186 typedef typename Container::value_type value_type;
23187 typedef typename Container::reference reference;
23188 typedef typename Container::const_reference const_reference;
23189 typedef typename Container::size_type size_type;
23190 typedef Container container_type;
23195 explicit queue(const Container&);
23196 explicit queue(Container&& = Container());
23197 queue(queue&& q)<ins>;</ins><del> : c(std::move(q.c)) {}</del>
23198 template <class Alloc> explicit queue(const Alloc&);
23199 template <class Alloc> queue(const Container&, const Alloc&);
23200 template <class Alloc> queue(Container&&, const Alloc&);
23201 template <class Alloc> queue(queue&&, const Alloc&);
23202 queue& operator=(queue&& q)<ins>;</ins><del> { c = std::move(q.c); return *this; }</del>
23204 bool empty() const { return c.empty(); }
23207 </pre></blockquote>
23210 Add a new section after 23.3.5.1.1 [queue.defn], [queue.cons]:
23214 <p><b><tt>queue</tt> constructors [queue.cons]</b></p>
23216 <pre>explicit queue(const Container& cont);
23222 <i>Effects:</i> Initializes <tt>c</tt> with <tt>cont</tt>.
23227 <pre>explicit queue(Container&& cont = Container());
23233 <i>Effects:</i> Initializes <tt>c</tt> with <tt>std::move(cont)</tt>.
23238 <pre>queue(queue&& q)
23244 <i>Effects:</i> Initializes <tt>c</tt> with <tt>std::move(q.c)</tt>.
23250 For each of the following constructors,
23251 if <tt>uses_allocator<container_type, Alloc>::value</tt> is <tt>false</tt>,
23252 then the constructor shall not participate in overload resolution.
23255 <pre>template <class Alloc>
23256 explicit queue(const Alloc& a);
23262 <i>Effects:</i> Initializes <tt>c</tt> with <tt>a</tt>.
23267 <pre>template <class Alloc>
23268 queue(const container_type& cont, const Alloc& a);
23274 <i>Effects:</i> Initializes <tt>c</tt> with <tt>cont</tt> as the first
23275 argument and <tt>a</tt> as the second argument.
23280 <pre>template <class Alloc>
23281 queue(container_type&& cont, const Alloc& a);
23287 <i>Effects:</i> Initializes <tt>c</tt> with <tt>std::move(cont)</tt> as the
23288 first argument and <tt>a</tt> as the second argument.
23293 <pre>template <class Alloc>
23294 queue(queue&& q, const Alloc& a);
23300 <i>Effects:</i> Initializes <tt>c</tt> with <tt>std::move(q.c)</tt> as the
23301 first argument and <tt>a</tt> as the second argument.
23306 <pre>queue& operator=(queue&& q);
23312 <i>Effects:</i> Assigns <tt>c</tt> with <tt>std::move(q.c)</tt>.
23316 <i>Returns:</i> <tt>*this</tt>.
23326 Add to 23.3.5.2.1 [priqueue.cons]:
23331 <pre>priority_queue(priority_queue&& q);
23337 <i>Effects:</i> Initializes <tt>c</tt> with <tt>std::move(q.c)</tt> and
23338 initializes <tt>comp</tt> with <tt>std::move(q.comp)</tt>.
23344 For each of the following constructors,
23345 if <tt>uses_allocator<container_type, Alloc>::value</tt> is <tt>false</tt>,
23346 then the constructor shall not participate in overload resolution.
23349 <pre>template <class Alloc>
23350 explicit priority_queue(const Alloc& a);
23356 <i>Effects:</i> Initializes <tt>c</tt> with <tt>a</tt> and value-initializes <tt>comp</tt>.
23361 <pre>template <class Alloc>
23362 priority_queue(const Compare& compare, const Alloc& a);
23368 <i>Effects:</i> Initializes <tt>c</tt> with <tt>a</tt> and initializes <tt>comp</tt>
23369 with <tt>compare</tt>.
23374 <pre>template <class Alloc>
23375 priority_queue(const Compare& compare, const Container& cont, const Alloc& a);
23381 <i>Effects:</i> Initializes <tt>c</tt> with <tt>cont</tt> as the first argument
23382 and <tt>a</tt> as the second argument,
23383 and initializes <tt>comp</tt> with <tt>compare</tt>.
23388 <pre>template <class Alloc>
23389 priority_queue(const Compare& compare, Container&& cont, const Alloc& a);
23395 <i>Effects:</i> Initializes <tt>c</tt> with <tt>std::move(cont)</tt> as
23396 the first argument and <tt>a</tt> as the second argument,
23397 and initializes <tt>comp</tt> with <tt>compare</tt>.
23402 <pre>template <class Alloc>
23403 priority_queue(priority_queue&& q, const Alloc& a);
23409 <i>Effects:</i> Initializes <tt>c</tt> with <tt>std::move(q.c)</tt> as the
23410 first argument and <tt>a</tt> as the second argument,
23411 and initializes <tt>comp</tt> with <tt>std::move(q.comp)</tt>.
23416 <pre>priority_queue& operator=(priority_queue&& q);
23422 <i>Effects:</i> Assigns <tt>c</tt> with <tt>std::move(q.c)</tt> and
23423 assigns <tt>comp</tt> with <tt>std::move(q.comp)</tt>.
23427 <i>Returns:</i> <tt>*this</tt>.
23438 Change 23.3.5.3.1 [stack.defn]:
23441 <blockquote><pre>template <class T, class Container = deque<T> >
23444 typedef typename Container::value_type value_type;
23445 typedef typename Container::reference reference;
23446 typedef typename Container::const_reference const_reference;
23447 typedef typename Container::size_type size_type;
23448 typedef Container container_type;
23453 explicit stack(const Container&);
23454 explicit stack(Container&& = Container());
23455 <ins>stack(stack&& s);</ins>
23456 template <class Alloc> explicit stack(const Alloc&);
23457 template <class Alloc> stack(const Container&, const Alloc&);
23458 template <class Alloc> stack(Container&&, const Alloc&);
23459 template <class Alloc> stack(stack&&, const Alloc&);
23460 <ins>stack& operator=(stack&& s);</ins>
23462 bool empty() const { return c.empty(); }
23465 </pre></blockquote>
23468 Add a new section after 23.3.5.3.1 [stack.defn], [stack.cons]:
23472 <p><b><tt>stack</tt> constructors [stack.cons]</b></p>
23474 <pre>stack(stack&& s);
23480 <i>Effects:</i> Initializes <tt>c</tt> with <tt>std::move(s.c)</tt>.
23486 For each of the following constructors,
23487 if <tt>uses_allocator<container_type, Alloc>::value</tt> is <tt>false</tt>,
23488 then the constructor shall not participate in overload resolution.
23491 <pre>template <class Alloc>
23492 explicit stack(const Alloc& a);
23498 <i>Effects:</i> Initializes <tt>c</tt> with <tt>a</tt>.
23503 <pre>template <class Alloc>
23504 stack(const container_type& cont, const Alloc& a);
23510 <i>Effects:</i> Initializes <tt>c</tt> with <tt>cont</tt> as the
23511 first argument and <tt>a</tt> as the second argument.
23516 <pre>template <class Alloc>
23517 stack(container_type&& cont, const Alloc& a);
23523 <i>Effects:</i> Initializes <tt>c</tt> with <tt>std::move(cont)</tt> as the
23524 first argument and <tt>a</tt> as the second argument.
23529 <pre>template <class Alloc>
23530 stack(stack&& s, const Alloc& a);
23536 <i>Effects:</i> Initializes <tt>c</tt> with <tt>std::move(s.c)</tt> as the
23537 first argument and <tt>a</tt> as the second argument.
23542 <pre>stack& operator=(stack&& s);
23548 <i>Effects:</i> Assigns <tt>c</tt> with <tt>std::move(s.c)</tt>.
23552 <i>Returns:</i> <tt>*this</tt>.
23565 <h3><a name="1197"></a>1197. Can unordered containers have <tt>bucket_count() == 0</tt>?</h3>
23566 <p><b>Section:</b> 23.2.5 [unord.req] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
23567 <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-08-24 <b>Last modified:</b> 2009-09-03</p>
23568 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#unord.req">active issues</a> in [unord.req].</p>
23569 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#unord.req">issues</a> in [unord.req].</p>
23570 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
23571 <p><b>Discussion:</b></p>
23573 Table 97 "Unordered associative container requirements" in
23574 23.2.5 [unord.req] says:
23579 <caption>Table 97 — Unordered associative container requirements
23580 (in addition to container)</caption>
23583 <th>Expression</th>
23584 <th>Return type</th>
23585 <th>Assertion/note pre-/post-condition</th>
23586 <th>Complexity</th>
23590 <td><tt>b.bucket(k)</tt></td>
23591 <td><tt>size_type</tt></td>
23592 <td>Returns the index of the bucket in which elements with keys
23593 equivalent to <tt>k</tt> would be found,
23594 if any such element existed.
23595 Post: the return value shall be
23596 in the range <tt>[0,
23597 b.bucket_count())</tt>.</td>
23605 What should <tt>b.bucket(k)</tt> return if <tt>b.bucket_count() == 0</tt>?
23609 I believe allowing <tt>b.bucket_count() == 0</tt> is important. It is a
23610 very reasonable post-condition of the default constructor, or of a moved-from
23615 I can think of several reasonable results from <tt>b.bucket(k)</tt> when
23616 <tt>b.bucket_count() == 0</tt>:
23624 Return <tt>numeric_limits<size_type>::max()</tt>.
23627 Throw a <tt>domain_error</tt>.
23630 Precondition: <tt>b.bucket_count() != 0</tt>.
23635 2009-08-26 Daniel adds:
23641 A forth choice would be to add the pre-condition "<tt>b.bucket_count() != 0</tt>"
23642 and thus imply undefined behavior if this is violated.
23646 Howard: I like this option too, added to the list.
23651 Further on here my own favorite solution (rationale see below):
23654 <p><b>Suggested resolution:</b></p>
23657 [Rationale: I suggest to follow choice (1). The main reason is
23658 that all associative container functions which take a key argument,
23659 are basically free of pre-conditions and non-disrupting, therefore
23660 excluding choices (3) and (4). Option (2) seems a bit unexpected
23661 to me. It would be more natural, if several similar functions
23662 would exist which would also justify the existence of a symbolic
23663 constant like npos for this situation. The value 0 is both simple
23664 and consistent, it has exactly the same role as a past-the-end
23665 iterator value. A typical use-case is:
23668 <blockquote><pre>size_type pos = m.bucket(key);
23669 if (pos != m.bucket_count()) {
23674 </pre></blockquote>
23676 <p>— end Rationale]</p>
23679 - Change Table 97 in 23.2.5 [unord.req] as follows (Row b.bucket(k), Column "Assertion/..."):
23684 <caption>Table 97 — Unordered associative container requirements
23685 (in addition to container)</caption>
23688 <th>Expression</th>
23689 <th>Return type</th>
23690 <th>Assertion/note pre-/post-condition</th>
23691 <th>Complexity</th>
23695 <td><tt>b.bucket(k)</tt></td>
23696 <td><tt>size_type</tt></td>
23697 <td>Returns the index of the bucket in which elements with keys
23698 equivalent to <tt>k</tt> would be found,
23699 if any such element existed.
23700 Post: <ins>if b.bucket_count() != 0, </ins>the return value shall be
23701 in the range <tt>[0,
23702 b.bucket_count())</tt><ins>, otherwise 0</ins>.</td>
23713 <p><b>Proposed resolution:</b></p>
23722 <h3><a name="1198"></a>1198. Container adaptor swap: member or non-member?</h3>
23723 <p><b>Section:</b> 23.3.5 [container.adaptors] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
23724 <b>Submitter:</b> Pablo Halpern <b>Opened:</b> 2009-08-26 <b>Last modified:</b> 2009-09-30</p>
23725 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#container.adaptors">active issues</a> in [container.adaptors].</p>
23726 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#container.adaptors">issues</a> in [container.adaptors].</p>
23727 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
23728 <p><b>Discussion:</b></p>
23730 Under 23.3.5 [container.adaptors] of
23731 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2914.pdf">N2914</a>
23732 the member function of <tt>swap</tt> of <tt>queue</tt> and <tt>stack</tt> call:
23735 <blockquote><pre>swap(c, q.c);
23736 </pre></blockquote>
23739 But under 23.3.5 [container.adaptors] of
23740 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2723.pdf">N2723</a>
23741 these members are specified to call:
23744 <blockquote><pre>c.swap(q.c);
23745 </pre></blockquote>
23748 Neither draft specifies the semantics of member <tt>swap</tt> for
23749 <tt>priority_queue</tt> though it is declared.
23753 Although the distinction between member <tt>swap</tt> and non-member
23754 <tt>swap</tt> is not important when these adaptors are adapting standard
23755 containers, it may be important for user-defined containers.
23758 We (Pablo and Howard) feel that
23759 it is more likely for a user-defined container to support a namespace scope
23760 <tt>swap</tt> than a member <tt>swap</tt>, and therefore these adaptors
23761 should use the container's namespace scope <tt>swap</tt>.
23765 2009-09-30 Daniel adds:
23770 The outcome of this issue should be considered with the outcome of <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#774">774</a> both in style and in content (e.g. <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#774">774</a> bullet 9
23771 suggests to define the semantic of <tt>void
23772 priority_queue::swap(priority_queue&)</tt> in terms of the member
23773 <tt>swap</tt> of the container).
23778 <p><b>Proposed resolution:</b></p>
23780 Changes written with respect to
23781 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2723.pdf">N2723</a>.
23786 Change 23.3.5.1.1 [queue.defn]:
23789 <blockquote><pre>template <class T, class Container = deque<T> >
23792 void swap(queue&<del>&</del> q) { <ins>using std::swap;</ins>
23793 <del>c.</del>swap(<ins>c, </ins>q.c); }
23796 </pre></blockquote>
23799 Change 23.3.5.2 [priority.queue]:
23802 <blockquote><pre>template <class T, class Container = vector<T>,
23803 class Compare = less<typename Container::value_type> >
23804 class priority_queue {
23806 void swap(priority_queue&<del>&</del> <ins>q</ins>)<del>;</del> <ins>{ using std::swap;</ins>
23807 <ins>swap(c, q.c);</ins>
23808 <ins>swap(comp, q.comp); }</ins>
23811 </pre></blockquote>
23814 Change 23.3.5.3.1 [stack.defn]:
23817 <blockquote><pre>template <class T, class Container = deque<T> >
23820 void swap(stack&<del>&</del> s) { <ins>using std::swap;</ins>
23821 <del>c.</del>swap(<ins>c, </ins>s.c); }
23824 </pre></blockquote>
23832 <h3><a name="1199"></a>1199. Missing extended copy constructor in container adaptors</h3>
23833 <p><b>Section:</b> 23.3.5 [container.adaptors] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
23834 <b>Submitter:</b> Pablo Halpern <b>Opened:</b> 2009-08-26 <b>Last modified:</b> 2009-08-31</p>
23835 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#container.adaptors">active issues</a> in [container.adaptors].</p>
23836 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#container.adaptors">issues</a> in [container.adaptors].</p>
23837 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
23838 <p><b>Discussion:</b></p>
23840 <tt>queue</tt> has a constructor:
23843 <blockquote><pre>template <class Alloc>
23844 queue(queue&&, const Alloc&);
23845 </pre></blockquote>
23848 but it is missing a corresponding constructor:
23851 <blockquote><pre>template <class Alloc>
23852 queue(const queue&, const Alloc&);
23853 </pre></blockquote>
23856 The same is true of <tt>priority_queue</tt>, and <tt>stack</tt>. This
23857 "extended copy constructor" is needed for consistency and to ensure that the
23858 user of a container adaptor can always specify the allocator for his adaptor.
23863 <p><b>Proposed resolution:</b></p>
23865 This resolution has been harmonized with the proposed resolution to issue
23866 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1194">1194</a>
23870 <p>Change 23.3.5.1.1 [queue.defn], p1:</p>
23872 <blockquote><pre>template <class T, class Container = deque<T> >
23875 typedef typename Container::value_type value_type;
23876 typedef typename Container::reference reference;
23877 typedef typename Container::const_reference const_reference;
23878 typedef typename Container::size_type size_type;
23879 typedef Container container_type;
23884 explicit queue(const Container&);
23885 explicit queue(Container&& = Container());
23886 queue(queue&& q);
23888 template <class Alloc> explicit queue(const Alloc&);
23889 template <class Alloc> queue(const Container&, const Alloc&);
23890 template <class Alloc> queue(Container&&, const Alloc&);
23891 <ins>template <class Alloc> queue(const queue&, const Alloc&);</ins>
23892 template <class Alloc> queue(queue&&, const Alloc&);
23893 queue& operator=(queue&& q);
23895 bool empty() const { return c.empty(); }
23898 </pre></blockquote>
23901 To the new section [queue.cons], introduced
23902 in <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1194">1194</a>, add:
23907 <pre>template <class Alloc>
23908 queue(const queue& q, const Alloc& a);
23912 <i>Effects:</i> Initializes <tt>c</tt> with <tt>q.c</tt> as the
23913 first argument and <tt>a</tt> as the second argument.
23918 <p>Change 23.3.5.2 [priority.queue] as follows (I've an included an editorial change to
23919 move the poorly-placed move-assignment operator):</p>
23921 <blockquote><pre>template <class T, class Container = vector<T>,
23922 class Compare = less<typename Container::value_type> >
23923 class priority_queue {
23925 typedef typename Container::value_type value_type;
23926 typedef typename Container::reference reference;
23927 typedef typename Container::const_reference const_reference;
23928 typedef typename Container::size_type size_type;
23929 typedef Container container_type;
23935 priority_queue(const Compare& x, const Container&);
23936 explicit priority_queue(const Compare& x = Compare(), Container&& = Container());
23937 template <class InputIterator>
23938 priority_queue(InputIterator first, InputIterator last,
23939 const Compare& x, const Container&);
23940 template <class InputIterator>
23941 priority_queue(InputIterator first, InputIterator last,
23942 const Compare& x = Compare(), Container&& = Container());
23943 priority_queue(priority_queue&&);
23944 <del>priority_queue& operator=(priority_queue&&);</del>
23945 template <class Alloc> explicit priority_queue(const Alloc&);
23946 template <class Alloc> priority_queue(const Compare&, const Alloc&);
23947 template <class Alloc> priority_queue(const Compare&,
23948 const Container&, const Alloc&);
23949 template <class Alloc> priority_queue(const Compare&,
23950 Container&&, const Alloc&);
23951 <ins>template <class Alloc> priority_queue(const priority_queue&, const Alloc&);</ins>
23952 template <class Alloc> priority_queue(priority_queue&&, const Alloc&);
23954 <ins>priority_queue& operator=(priority_queue&&);</ins>
23957 </pre></blockquote>
23960 Add to 23.3.5.2.1 [priqueue.cons]:
23965 <pre>template <class Alloc>
23966 explicit priority_queue(const priority_queue& q, const Alloc& a);
23970 <i>Effects:</i> Initializes <tt>c</tt> with <tt>q.c</tt> as the
23971 first argument and <tt>a</tt> as the second argument,
23972 and initializes <tt>comp</tt> with <tt>q.comp</tt>.
23978 Change 23.3.5.3.1 [stack.defn]:
23981 <blockquote><pre>template <class T, class Container = deque<T> >
23984 typedef typename Container::value_type value_type;
23985 typedef typename Container::reference reference;
23986 typedef typename Container::const_reference const_reference;
23987 typedef typename Container::size_type size_type;
23988 typedef Container container_type;
23993 explicit stack(const Container&);
23994 explicit stack(Container&& = Container());
23995 stack(stack&& s);
23997 template <class Alloc> explicit stack(const Alloc&);
23998 template <class Alloc> stack(const Container&, const Alloc&);
23999 template <class Alloc> stack(Container&&, const Alloc&);
24000 <ins>template <class Alloc> stack(const stack&, const Alloc&);</ins>
24001 template <class Alloc> stack(stack&&, const Alloc&);
24002 stack& operator=(stack&& s);
24004 bool empty() const { return c.empty(); }
24007 </pre></blockquote>
24010 To the new section [stack.cons], introduced
24011 in <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1194">1194</a>, add:
24016 <pre>template <class Alloc>
24017 stack(const stack& s, const Alloc& a);
24021 <i>Effects:</i> Initializes <tt>c</tt> with <tt>s.c</tt> as the
24022 first argument and <tt>a</tt> as the second argument.
24032 <h3><a name="1200"></a>1200. "surprising" <tt>char_traits<T>::int_type</tt> requirements</h3>
24033 <p><b>Section:</b> 21.2.2 [char.traits.typedefs] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
24034 <b>Submitter:</b> Sean Hunt <b>Opened:</b> 2009-09-03 <b>Last modified:</b> 2009-10-28</p>
24035 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#char.traits.typedefs">issues</a> in [char.traits.typedefs].</p>
24036 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
24037 <p><b>Discussion:</b></p>
24039 The footnote for <tt>int_type</tt> in 21.2.2 [char.traits.typedefs] says that
24044 can be held in <tt>char_type</tt> then some iostreams implementations may give
24045 surprising results.
24049 This implies that <tt>int_type</tt> should be a superset of
24050 <tt>char_type</tt>. However, the requirements for <tt>char16_t</tt> and <tt>char32_t</tt> define
24051 <tt>int_type</tt> to be equal to <tt>int_least16_t</tt> and <tt>int_least32_t</tt> respectively.
24052 <tt>int_least16_t</tt> is likely to be the same size as <tt>char_16_t</tt>, which may lead
24053 to surprising behavior, even if <tt>eof()</tt> is not a valid UTF-16 code unit.
24054 The standard should not prescribe surprising behavior, especially
24055 without saying what it is (it's apparently not undefined, just
24056 surprising). The same applies for 32-bit types.
24060 I personally recommend that behavior be undefined if <tt>eof()</tt> is a member
24061 of <tt>char_type</tt>, and another type be chosen for <tt>int_type</tt> (my personal
24062 favorite has always been a <tt>struct {bool eof; char_type c;}</tt>).
24063 Alternatively, the exact results of such a situation should be defined,
24064 at least so far that I/O could be conducted on these types as long as
24065 the code units remain valid. Note that the argument that no one streams
24066 <tt>char16_t</tt> or <tt>char32_t</tt> is not really valid as it would be perfectly
24067 reasonable to use a <tt>basic_stringstream</tt> in conjunction with UTF character
24072 2009-10-28 Ganesh provides two possible resolutions and expresses a preference
24081 Replace 21.2.3.2 [char.traits.specializations.char16_t] para 3 with:
24085 The member <tt>eof()</tt> shall return <del>an implementation-defined
24086 constant that cannot appear as a valid UTF-16 code unit</del>
24087 <ins><tt>UINT_LEAST16_MAX</tt> [<i>Note:</i> this value is guaranteed to
24088 be a permanently reserved UCS-2 code position if <tt>UINT_LEAST16_MAX ==
24089 0xFFFF</tt> and it's not a UCS-2 code position otherwise — <i>end
24094 Replace 21.2.3.3 [char.traits.specializations.char32_t] para 3 with:
24098 The member <tt>eof()</tt> shall return <del>an implementation-defined constant that
24099 cannot appear as a Unicode code point</del>
24101 <tt>UINT_LEAST32_MAX</tt> [<i>Note:</i> this value is guaranteed to be a
24102 permanently reserved UCS-4 code position if <tt>UINT_LEAST32_MAX ==
24103 0xFFFFFFFF</tt> and it's not a UCS-4 code position otherwise — <i>end
24109 In 21.2.3.2 [char.traits.specializations.char16_t], in the
24110 definition of <tt>char_traits<char16_t></tt> replace the definition of nested
24111 typedef <tt>int_type</tt> with:
24114 <blockquote><pre>namespace std {
24115 template<> struct char_traits<char16_t> {
24116 typedef char16_t char_type;
24117 typedef <del>uint_least16_t</del> <ins>uint_fast16_t</ins> int_type;
24119 </pre></blockquote>
24122 Replace 21.2.3.2 [char.traits.specializations.char16_t] para 3 with:
24126 The member <tt>eof()</tt> shall return <del>an implementation-defined
24127 constant that cannot appear as a valid UTF-16 code unit</del>
24128 <ins><tt>UINT_FAST16_MAX</tt> [<i>Note:</i> this value is guaranteed to
24129 be a permanently reserved UCS-2 code position if <tt>UINT_FAST16_MAX ==
24130 0xFFFF</tt> and it's not a UCS-2 code position otherwise — <i>end
24135 In 21.2.3.3 [char.traits.specializations.char32_t], in the
24136 definition of <tt>char_traits<char32_t></tt> replace the definition of nested
24137 typedef <tt>int_type</tt> with:
24140 <blockquote><pre>namespace std {
24141 template<> struct char_traits<char32_t> {
24142 typedef char32_t char_type;
24143 typedef <del>uint_least32_t</del> <ins>uint_fast32_t</ins> int_type;
24145 </pre></blockquote>
24148 Replace 21.2.3.3 [char.traits.specializations.char32_t] para 3 with:
24152 The member <tt>eof()</tt> shall return <del>an implementation-defined constant that
24153 cannot appear as a Unicode code point</del>
24155 <tt>UINT_FAST32_MAX</tt> [<i>Note:</i> this value is guaranteed to be a
24156 permanently reserved UCS-4 code position if <tt>UINT_FAST32_MAX ==
24157 0xFFFFFFFF</tt> and it's not a UCS-4 code position otherwise — <i>end
24166 <p><b>Proposed resolution:</b></p>
24175 <h3><a name="1201"></a>1201. Do we always want to unwrap <tt>ref</tt>-wrappers in <tt>make_tuple</tt></h3>
24176 <p><b>Section:</b> 20.5.2.4 [tuple.creation], 20.3.4 [pairs] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#NAD%20Future">Tentatively NAD Future</a>
24177 <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-09-05 <b>Last modified:</b> 2009-10-26</p>
24178 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Tentatively%20NAD%20Future">Tentatively NAD Future</a> status.</p>
24179 <p><b>Discussion:</b></p>
24181 Spotting a recent thread on the boost lists regarding collapsing
24182 optional representations in <tt>optional<optional<T>></tt> instances, I wonder if
24183 we have some of the same issues with <tt>make_tuple</tt>, and now <tt>make_pair</tt>?
24187 Essentially, if my generic code in my own library is handed a
24188 <tt>reference_wrapper</tt> by a user, and my library in turn delegates some logic
24189 to <tt>make_pair</tt> or <tt>make_tuple</tt>, then I am going to end up with a <tt>pair</tt>/<tt>tuple</tt>
24190 holding a real reference rather than the intended reference wrapper.
24194 There are two things as a library author I can do at this point:
24199 document my library also has the same reference-wrapper behaviour as
24200 <tt>std::make_tuple</tt>
24203 roll my own <tt>make_tuple</tt> that does not unwrap rereferences, a lost
24204 opportunity to re-use the standard library.
24209 (There may be some metaprogramming approaches my library can use to wrap
24210 the <tt>make_tuple</tt> call, but all will be significantly more complex than
24211 simply implementing a simplified <tt>make_tuple</tt>.)
24215 Now I don't propose we lose this library facility, I think unwrapping
24216 references will be the common behaviour. However, we might want to
24217 consider adding another overload that does nothing special with
24218 <tt>ref</tt>-wrappers. Note that we already have a second overload of <tt>make_tuple</tt>
24219 in the library, called <tt>tie</tt>.
24223 2009-09-30 Daniel adds:
24229 I suggest to change the currently proposed paragraph for
24230 <tt>make_simple_pair</tt>
24233 <blockquote><pre>template<typename... Types>
24234 pair<typename decay<Types>::type...> make_simple_pair(Types&&... t);
24238 <del><i>Type requirements:</i> <tt>sizeof...(Types) == 2</tt>.</del>
24239 <ins><i>Remarks:</i> The program shall be ill-formed, if
24240 <tt>sizeof...(Types) != 2</tt>.</ins>
24249 or alternatively (but with a slightly different semantic):
24254 <i>Remarks:</i> If <tt>sizeof...(Types) != 2</tt>, this function shall not
24255 participate in overload resolution.
24260 to follow a currently introduced style and because the library does
24261 not have yet a specific "<i>Type requirements</i>" element. If such thing
24262 would be considered as useful this should be done as a separate
24263 issue. Given the increasing complexity of either of these wordings
24264 it might be preferable to use the normal two-argument-declaration
24265 style again in either of the following ways:
24270 <pre>template<class T1, class T2>
24271 pair<typename decay<T1>::type, typename decay<T2>::type>
24272 make_simple_pair(T1&& t1, T2&& t2);
24276 <pre>template<class T1, class T2>
24277 pair<V1, V2> make_simple_pair(T1&& t1, T2&& t2);
24280 Let <tt>V1</tt> be <tt>typename decay<T1>::type</tt> and <tt>V2</tt> be
24281 <tt>typename decay<T2>::type</tt>.
24289 2009-10 post-Santa Cruz:
24294 Mark as Tentatively NAD Future.
24299 <p><b>Proposed resolution:</b></p>
24301 Add the following function to 20.3.4 [pairs] and signature in
24302 appropriate synopses:
24305 <blockquote><pre>template<typename... Types>
24306 pair<typename decay<Types>::type...> make_simple_pair(Types&&... t);
24310 <i>Type requirements:</i> <tt>sizeof...(Types) == 2</tt>.
24313 <i>Returns:</i> <tt>pair<typename decay<Types>::type...>(std::forward<Types>(t)...)</tt>.
24319 Draughting note: I chose a variadic representation similar to <tt>make_tuple</tt>
24320 rather than naming both types as it is easier to read through the
24321 clutter of metaprogramming this way. Given there are exactly two
24322 elements, the committee may prefer to draught with two explicit template
24323 type parameters instead
24328 Add the following function to 20.5.2.4 [tuple.creation] and
24329 signature in appropriate synopses:
24332 <blockquote><pre>template<typename... Types>
24333 tuple<typename decay<Types>::type...> make_simple_tuple(Types&&... t);
24337 <i>Returns:</i> <tt>tuple<typename decay<Types>::type...>(std::forward<Types>(t)...)</tt>.
24347 <h3><a name="1202"></a>1202. <tt>integral_constant</tt> needs a spring clean</h3>
24348 <p><b>Section:</b> 20.6.3 [meta.help] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
24349 <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-09-05 <b>Last modified:</b> 2009-09-06</p>
24350 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#meta.help">issues</a> in [meta.help].</p>
24351 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
24352 <p><b>Discussion:</b></p>
24354 The specification of <tt>integral_constant</tt> has been inherited
24355 essentially unchanged from TR1:
24358 <blockquote><pre>template <class T, T v>
24359 struct integral_constant {
24360 static const T value = v;
24361 typedef T value_type;
24362 typedef integral_constant<T,v> type;
24364 </pre></blockquote>
24367 In light of 0x language changes there are several things we might
24368 consider changing, notably the form of specification for value.
24372 The current form requires a static data member have storage allocated
24373 for it, where we could now implement without this using the new enum
24377 <blockquote><pre>template <class T, T v>
24378 struct integral_constant {
24379 <b>enum : T { value = v };</b>
24380 typedef T value_type;
24381 typedef integral_constant type;
24383 </pre></blockquote>
24386 The effective difference between these two implementation is:
24391 No requirement to allocate storage for data member (which we hope but do
24392 not guarantee compilers strip today)
24396 You can no longer take the address of the constant as
24397 <tt>&integral_constant<T,v>::value;</tt>
24402 Also note the editorial change to drop the explicit qualification of
24403 <tt>integral_constant</tt> in the <tt>typedef type</tt>. This makes it quite clear we
24404 mean the current instantiation, and cannot be mistaken for a recursive
24409 Even if we don't mandate this implementation, it would be nice to give
24410 vendors freedom under QoI to choose their preferred representation.
24414 The other side of this issue is if we choose to retain the static
24415 constant form. In that case we should go further and insist on
24416 <tt>constexpr</tt>, much like we did throughout <tt>numeric_limits</tt>:
24419 <blockquote><pre>template <class T, T v>
24420 struct integral_constant {
24421 static <b>constexpr</b> T value = v;
24422 typedef T value_type;
24423 typedef integral_constant type;
24425 </pre></blockquote>
24428 [Footnote] It turns out <tt>constexpr</tt> is part of the Tentatively Ready
24429 resolution for <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1019">1019</a>. I don't want to interfere with that issue, but
24430 would like a new issue to consider if the fixed-base enum implementation
24435 2009-09-05 Daniel adds:
24441 I think that the suggested resolution is incomplete and
24442 may have some possible unwanted side-effects. To understand
24443 why, note that <tt>integral_constant</tt> is <em>completely</em> specified
24444 by code in 20.6.3 [meta.help]. While this is usually considered
24445 as a good thing, let me give a possible user-defined
24446 specialization that would break given the suggested changes:
24449 <blockquote><pre>enum NodeColor { Red, Black };
24451 std::integral_constant<NodeColor, Red> red;
24452 </pre></blockquote>
24455 The reason why that breaks is due to the fact that
24456 current core language rules does only allow integral
24457 types as enum-bases, see 7.2 [dcl.enum]/2.
24461 So, I think that we cannot leave the implementation the
24462 freedom to decide which way they would like to provide
24463 the implementation, because that is easily user-visible
24464 (I don't speak of addresses, but of instantiation errors),
24465 therefore if applied, this should be either specified or
24466 wording must be added that gives a note about this
24467 freedom of implementation.
24471 Another possible disadvantage seems to me that user-expectations
24472 are easy to disappoint if they see a failure
24476 <blockquote><pre>assert(typeid(std::integral_constant<int, 0>::value) == typeid(int));
24477 </pre></blockquote>
24483 <blockquote><pre>static_assert(std::is_same<decltype(std::integral_constant<int, 0>::value), const int>::value, "Bad library");
24484 </pre></blockquote>
24490 <p><b>Proposed resolution:</b></p>
24497 <h3><a name="1204"></a>1204. Global permission to move</h3>
24498 <p><b>Section:</b> 17.6.3.9 [res.on.arguments] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
24499 <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-09-12 <b>Last modified:</b> 2009-10-20</p>
24500 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
24501 <p><b>Discussion:</b></p>
24503 When a library function binds an rvalue reference parameter to an argument, the
24504 library must be able to assume that the bound argument is a temporary, and not
24505 a moved-from lvalue. The reason for this is that the library function must be
24506 able to modify that argument without concern that such modifications will corrupt
24507 the logic of the calling code. For example:
24510 <blockquote><pre>template <class T, class A>
24512 vector<T, A>::push_back(value_type&& v)
24514 <font color="#c80000">// This function should move from v, potentially modifying</font>
24515 <font color="#c80000">// the object v is bound to.</font>
24517 </pre></blockquote>
24520 If <tt>v</tt> is truly bound to a temporary, then <tt>push_back</tt> has the
24521 <em>only</em> reference to this temporary in the entire program. Thus any
24522 modifications will be invisible to the rest of the program.
24526 If the client supplies <tt>std::move(x)</tt> to <tt>push_back</tt>, the onus is
24527 on the client to ensure that the value of <tt>x</tt> is no longer important to
24528 the logic of his program after this statement. I.e. the client is making a statement
24529 that <tt>push_back</tt> may treat <tt>x</tt> as a temporary.
24533 The above statement is the very foundation upon which move semantics is based.
24537 The standard is currently lacking a global statement to this effect. I propose
24538 the following addition to 17.6.3.9 [res.on.arguments]:
24543 Each of the following statements applies to all arguments to functions
24544 defined in the C++ standard library, unless explicitly stated otherwise.
24548 If an argument to a function has an invalid value (such as a value
24549 outside the domain of the function, or a pointer invalid for its
24550 intended use), the behavior is undefined.
24553 If a function argument is described as being an array, the pointer
24554 actually passed to the function shall have a value such that all address
24555 computations and accesses to objects (that would be valid if the pointer
24556 did point to the first element of such an array) are in fact valid.
24559 If a function argument binds to an rvalue reference parameter, the C++
24560 standard library may assume that this parameter is a unique reference
24561 to this argument. If the parameter is a generic parameter of the
24562 form <tt>T&&</tt>, and an lvalue of type <tt>A</tt> is bound,
24563 then the binding is considered to be to an lvalue reference
24564 (14.9.2.1 [temp.deduct.call]) and thus not covered by this clause.
24566 If a program casts an lvalue to an rvalue while passing that lvalue to
24567 a library function (e.g. <tt>move(x)</tt>), then the program is effectively
24568 asking the library to treat that lvalue as a temporary. The library is at
24569 liberty to optimize away aliasing checks which might be needed if the argument
24571 — <i>end note</i>]
24578 Such a global statement will eliminate the need for piecemeal statements such as
24579 23.2.1 [container.requirements.general]/13:
24583 An object bound to an rvalue reference parameter of a member function of
24584 a container shall not be an element of that container; no diagnostic
24589 Additionally this clarifies that move assignment operators need not perform the
24590 traditional <tt>if (this != &rhs)</tt> test commonly found (and needed) in
24591 copy assignment operators.
24595 2009-09-13 Niels adds:
24600 Note: This resolution supports the change of 27.9.1.3 [filebuf.assign]/1,
24601 proposed by LWG <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#900">900</a>.
24615 <p><b>Proposed resolution:</b></p>
24617 Add a bullet to 17.6.3.9 [res.on.arguments]:
24622 Each of the following statements applies to all arguments to functions
24623 defined in the C++ standard library, unless explicitly stated otherwise.
24627 If an argument to a function has an invalid value (such as a value
24628 outside the domain of the function, or a pointer invalid for its
24629 intended use), the behavior is undefined.
24632 If a function argument is described as being an array, the pointer
24633 actually passed to the function shall have a value such that all address
24634 computations and accesses to objects (that would be valid if the pointer
24635 did point to the first element of such an array) are in fact valid.
24638 If a function argument binds to an rvalue reference parameter, the C++
24639 standard library may assume that this parameter is a unique reference
24640 to this argument. If the parameter is a generic parameter of the
24641 form <tt>T&&</tt>, and an lvalue of type <tt>A</tt> is bound,
24642 then the binding is considered to be to an lvalue reference
24643 (14.9.2.1 [temp.deduct.call]) and thus not covered by this clause.
24645 If a program casts an lvalue to an rvalue while passing that lvalue to
24646 a library function (e.g. <tt>move(x)</tt>), then the program is effectively
24647 asking the library to treat that lvalue as a temporary. The library is at
24648 liberty to optimize away aliasing checks which might be needed if the argument
24650 — <i>end note</i>]
24656 Delete 23.2.1 [container.requirements.general]/13:
24660 An object bound to an rvalue reference parameter of a member function of
24661 a container shall not be an element of that container; no diagnostic
24663 </del></blockquote>
24671 <h3><a name="1205"></a>1205. Some algorithms could more clearly document their handling of empty ranges</h3>
24672 <p><b>Section:</b> 25 [algorithms] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
24673 <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-09-13 <b>Last modified:</b> 2009-09-13</p>
24674 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#algorithms">active issues</a> in [algorithms].</p>
24675 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#algorithms">issues</a> in [algorithms].</p>
24676 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
24677 <p><b>Discussion:</b></p>
24679 There are a number of algorithms whose result might depend on the
24680 handling of an empty range. In some cases the result is not clear,
24681 while in others it would help readers to clearly mention the result
24682 rather than require some subtle intuition of the supplied wording.
24686 25.2.1 [alg.all_of]
24690 <i>Returns:</i> <tt>true</tt> if <tt>pred(*i)</tt> is <tt>true</tt> for every
24691 iterator <tt>i</tt> in the range <tt>[first,last)</tt>, ...
24695 What does this mean if the range is empty?
24699 I believe that we intend this to be <tt>true</tt> and suggest a
24700 non-normative note to clarify:
24704 Add to p1 25.2.1 [alg.all_of]:
24708 [<i>Note:</i> Returns <tt>true</tt> if <tt>[first,last)</tt> is empty.
24709 — <i>end note</i>]
24713 25.2.3 [alg.none_of]
24717 <i>Returns:</i> <tt>true</tt> if <tt>pred(*i)</tt> is <tt>false</tt> for every
24718 iterator <tt>i</tt> in the range <tt>[first,last)</tt>, ...
24722 What does this mean if the range empty?
24726 I believe that we intend this to be <tt>true</tt> and suggest a
24727 non-normative note to clarify:
24731 Add to p1 25.2.3 [alg.none_of]:
24735 [<i>Note:</i> Returns <tt>true</tt> if <tt>[first,last)</tt> is empty.
24736 — <i>end note</i>]
24740 25.2.2 [alg.any_of]
24744 The specification for an empty range is actually fairly clear in this
24745 case, but a note wouldn't hurt and would be consistent with proposals
24746 for <tt>all_of</tt>/<tt>none_of</tt> algorithms.
24750 Add to p1 25.2.2 [alg.any_of]:
24754 [<i>Note:</i> Returns <tt>false</tt> if <tt>[first,last)</tt> is empty.
24755 — <i>end note</i>]
24759 25.2.6 [alg.find.end]
24763 what does this mean if <tt>[first2,last2)</tt> is empty?
24767 I believe the wording suggests the algorithm should return
24768 <tt>last1</tt> in this case, but am not 100% sure. Is this in fact the
24769 correct result anyway? Surely an empty range should always match and the
24770 naive expected result would be <tt>first1</tt>?
24774 My proposed wording is a note to clarify the current semantic:
24778 Add to p2 25.2.6 [alg.find.end]:
24782 [<i>Note:</i> Returns <tt>last1</tt> if <tt>[first2,last2)</tt> is
24783 empty. — <i>end note</i>]
24787 I would prefer a normative wording treating empty ranges specially, but
24788 do not believe we can change semantics at this point in the process,
24789 unless existing implementations actually yield this result:
24793 Alternative wording: (NOT a note)
24796 Add to p2 25.2.6 [alg.find.end]:
24799 Returns <tt>first1</tt> if <tt>[first2,last2)</tt> is empty.
24803 25.2.7 [alg.find.first.of]
24807 The phrasing seems precise when <tt>[first2, last2)</tt> is empty, but a small
24808 note to confirm the reader's understanding might still help.
24812 Add to p2 25.2.7 [alg.find.first.of]
24815 [<i>Note:</i> Returns <tt>last1</tt> if <tt>[first2,last2)</tt> is
24816 empty. — <i>end note</i>]
24820 25.2.12 [alg.search]
24824 What is the expected result if <tt>[first2, last2)</tt> is empty?
24828 I believe the wording suggests the algorithm should return <tt>last1</tt> in this
24829 case, but am not 100% sure. Is this in fact the correct result anyway?
24830 Surely an empty range should always match and the naive expected result
24831 would be <tt>first1</tt>?
24835 My proposed wording is a note to clarify the current semantic:
24839 Add to p2 25.2.12 [alg.search]:
24843 [<i>Note:</i> Returns <tt>last1</tt> if <tt>[first2,last2)</tt> is
24844 empty. — <i>end note</i>]
24848 Again, I would prefer a normative wording treating empty ranges
24849 specially, but do not believe we can change semantics at this point in
24850 the process, unless existing implementations actually yield this result:
24854 Alternative wording: (NOT a note)
24857 Add to p2 25.2.12 [alg.search]:
24861 Returns <tt>first1</tt> if <tt>[first2,last2)</tt> is empty.
24865 25.3.13 [alg.partitions]
24869 Is an empty range partitioned or not?
24877 Add to p1 25.3.13 [alg.partitions]:
24881 [<i>Note:</i> Returns <tt>true</tt> if <tt>[first,last)</tt> is empty.
24882 — <i>end note</i>]
24886 25.4.5.1 [includes]
24890 <i>Returns:</i> <tt>true</tt> if every element in the range
24891 <tt>[first2,last2)</tt> is contained in the range
24892 <tt>[first1,last1)</tt>. ...
24896 I really don't know what this means if <tt>[first2,last2)</tt> is empty.
24897 I could loosely guess that this implies empty ranges always match, and
24898 my proposed wording is to clarify exactly that:
24902 Add to p1 25.4.5.1 [includes]:
24906 [<i>Note:</i> Returns <tt>true</tt> if <tt>[first2,last2)</tt> is empty.
24907 — <i>end note</i>]
24911 25.4.6.2 [pop.heap]
24915 The effects clause is invalid if the range <tt>[first,last)</tt> is empty, unlike
24916 all the other heap alogorithms. The should be called out in the
24924 Revise p2 25.4.6.2 [pop.heap]
24928 <i>Requires:</i> The range <tt>[first,last)</tt> shall be a valid
24929 <ins>non-empty</ins> heap.
24933 [Editorial] Reverse order of 25.4.6.2 [pop.heap] p1 and p2.
24937 25.4.7 [alg.min.max]
24941 <tt>minmax_element</tt> does not clearly specify behaviour for an empty
24942 range in the same way that <tt>min_element</tt> and <tt>max_element</tt> do.
24946 Add to p31 25.4.7 [alg.min.max]:
24950 Returns <tt>make_pair(first, first)</tt> if <tt>first == last</tt>.
24954 25.4.8 [alg.lex.comparison]
24958 The wording here seems quite clear, especially with the sample algorithm
24959 implementation. A note is recommended purely for consistency with the
24960 rest of these issue resolutions:
24964 Add to p1 25.4.8 [alg.lex.comparison]:
24968 [<i>Note:</i> An empty sequence is lexicographically less than any other
24969 non-empty sequence, but not to another empty sequence. — <i>end note</i>]
24973 <p><b>Proposed resolution:</b></p>
24975 Add to p1 25.2.1 [alg.all_of]:
24978 [<i>Note:</i> Returns <tt>true</tt> if <tt>[first,last)</tt> is empty.
24979 — <i>end note</i>]
24983 Add to p1 25.2.2 [alg.any_of]:
24986 [<i>Note:</i> Returns <tt>false</tt> if <tt>[first,last)</tt> is empty.
24987 — <i>end note</i>]
24991 Add to p1 25.2.3 [alg.none_of]:
24994 [<i>Note:</i> Returns <tt>true</tt> if <tt>[first,last)</tt> is empty.
24995 — <i>end note</i>]
24999 Add to p2 25.2.6 [alg.find.end]:
25002 [<i>Note:</i> Returns <tt>last1</tt> if <tt>[first2,last2)</tt> is
25003 empty. — <i>end note</i>]
25007 Add to p2 25.2.7 [alg.find.first.of]
25010 [<i>Note:</i> Returns <tt>last1</tt> if <tt>[first2,last2)</tt> is
25011 empty. — <i>end note</i>]
25015 Add to p2 25.2.12 [alg.search]:
25018 [<i>Note:</i> Returns <tt>last1</tt> if <tt>[first2,last2)</tt> is
25019 empty. — <i>end note</i>]
25023 Add to p1 25.3.13 [alg.partitions]:
25026 [<i>Note:</i> Returns <tt>true</tt> if <tt>[first,last)</tt> is empty.
25027 — <i>end note</i>]
25031 Add to p1 25.4.5.1 [includes]:
25034 [<i>Note:</i> Returns <tt>true</tt> if <tt>[first2,last2)</tt> is empty.
25035 — <i>end note</i>]
25039 Revise p2 25.4.6.2 [pop.heap]
25042 Requires: The range <tt>[first,last)</tt> shall be a valid
25043 <ins>non-empty</ins> heap.
25050 Reverse order of 25.4.6.2 [pop.heap] p1 and p2.
25054 Add to p31 25.4.7 [alg.min.max]:
25057 Returns <tt>make_pair(first, first)</tt> if <tt>first == last</tt>.
25061 Add to p1 25.4.8 [alg.lex.comparison]:
25064 [<i>Note:</i> An empty sequence is lexicographically less than any other
25065 non-empty sequence, but not less than another empty sequence. —
25075 <h3><a name="1206"></a>1206. Incorrect requires for <tt>move_backward</tt> and <tt>copy_backward</tt></h3>
25076 <p><b>Section:</b> 25.3.2 [alg.move] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
25077 <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-09-13 <b>Last modified:</b> 2009-09-13</p>
25078 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
25079 <p><b>Discussion:</b></p>
25081 25.3.2 [alg.move], p6 says:
25085 <pre>template<class BidirectionalIterator1, class BidirectionalIterator2>
25086 BidirectionalIterator2
25087 move_backward(BidirectionalIterator1 first,
25088 BidirectionalIterator1 last,
25089 BidirectionalIterator2 result);
25094 <i>Requires:</i> <tt>result</tt> shall not be in the range
25095 <tt>[first,last)</tt>.
25101 This is essentially an "off-by-one" error.
25105 When <tt>result == last</tt>, which
25106 <em>is</em> allowed by this specification, then the range <tt>[first, last)</tt>
25107 is being move assigned into the range <tt>[first, last)</tt>. The <tt>move</tt>
25108 (forward) algorithm doesn't allow self move assignment, and neither should
25109 <tt>move_backward</tt>. So <tt>last</tt> should be included in the range which
25110 <tt>result</tt> can not be in.
25114 Conversely, when <tt>result == first</tt>, which <em>is not</em> allowed by this
25115 specification, then the range <tt>[first, last)</tt>
25116 is being move assigned into the range <tt>[first - (last-first), first)</tt>.
25117 I.e. into a <em>non-overlapping</em> range. Therefore <tt>first</tt> should
25118 not be included in the range which <tt>result</tt> can not be in.
25122 The same argument applies to <tt>copy_backward</tt> though copy assigning elements
25123 to themselves (<tt>result == last</tt>) should be harmless (though is disallowed
25129 <p><b>Proposed resolution:</b></p>
25131 Change 25.3.2 [alg.move], p6:
25135 <pre>template<class BidirectionalIterator1, class BidirectionalIterator2>
25136 BidirectionalIterator2
25137 move_backward(BidirectionalIterator1 first,
25138 BidirectionalIterator1 last,
25139 BidirectionalIterator2 result);
25144 <i>Requires:</i> <tt>result</tt> shall not be in the range
25145 <tt><del>[</del><ins>(</ins>first,last<ins>]</ins><del>)</del></tt>.
25151 Change 25.3.1 [alg.copy], p13:
25155 <pre>template<class BidirectionalIterator1, class BidirectionalIterator2>
25156 BidirectionalIterator2
25157 copy_backward(BidirectionalIterator1 first,
25158 BidirectionalIterator1 last,
25159 BidirectionalIterator2 result);
25164 <i>Requires:</i> <tt>result</tt> shall not be in the range
25165 <tt><del>[</del><ins>(</ins>first,last<ins>]</ins><del>)</del></tt>.
25175 <h3><a name="1207"></a>1207. Underspecified std::list operations?</h3>
25176 <p><b>Section:</b> 23.3.4.4 [list.ops] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
25177 <b>Submitter:</b> Loïc Joly <b>Opened:</b> 2009-09-13 <b>Last modified:</b> 2009-09-19</p>
25178 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#list.ops">active issues</a> in [list.ops].</p>
25179 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#list.ops">issues</a> in [list.ops].</p>
25180 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
25181 <p><b>Discussion:</b></p>
25183 It looks to me like some operations of <tt>std::list</tt>
25184 (<tt>sort</tt>, <tt>reverse</tt>, <tt>remove</tt>, <tt>unique</tt> &
25185 <tt>merge</tt>) do not specify the validity of iterators, pointers &
25186 references to elements of the list after those operations. Is it implied
25187 by some other text in the standard?
25191 I believe <tt>sort</tt> & <tt>reverse</tt> do not invalidating
25192 anything, <tt>remove</tt> & <tt>unique</tt> only invalidates what
25193 refers to erased elements, <tt>merge</tt> does not invalidate anything
25194 (with the same precision as <tt>splice</tt> for elements who changed of
25195 container). Are those assumptions correct ?
25199 <p><b>Proposed resolution:</b></p>
25206 <h3><a name="1208"></a>1208. valarray initializer_list constructor has incorrect effects</h3>
25207 <p><b>Section:</b> 26.6.2.1 [valarray.cons] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Tentatively Ready</a>
25208 <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-09-23 <b>Last modified:</b> 2009-10-29</p>
25209 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#valarray.cons">issues</a> in [valarray.cons].</p>
25210 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Tentatively%20Ready">Tentatively Ready</a> status.</p>
25211 <p><b>Discussion:</b></p>
25213 26.6.2.1 [valarray.cons] says:
25217 <pre>valarray(initializer_list<T> il);
25220 <i>Effects:</i> Same as <tt>valarray(il.begin(), il.end())</tt>.
25225 But there is no <tt>valarray</tt> constructor taking two <tt>const T*</tt>.
25234 Moved to Tentatively Ready after 6 positive votes on c++std-lib.
25238 <p><b>Proposed resolution:</b></p>
25240 Change 26.6.2.1 [valarray.cons]:
25244 <pre>valarray(initializer_list<T> il);
25247 <i>Effects:</i> Same as <tt>valarray(il.begin(), il.<del>end</del><ins>size</ins>())</tt>.
25256 <h3><a name="1209"></a>1209. match_results should be moveable</h3>
25257 <p><b>Section:</b> 28.10.1 [re.results.const] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
25258 <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2009-09-15 <b>Last modified:</b> 2009-09-21</p>
25259 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
25260 <p><b>Discussion:</b></p>
25263 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2914.pdf">N2914</a>,
25264 <tt>match_results</tt> lacks a move constructor and move
25265 assignment operator. Because it owns dynamically allocated memory, it
25266 should be moveable.
25270 As far as I can tell, this isn't tracked by an active issue yet; Library
25271 Issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#723">723</a> doesn't talk about <tt>match_results</tt>.
25275 2009-09-21 Daniel provided wording.
25280 <p><b>Proposed resolution:</b></p>
25284 Add the following member declarations to 28.10 [re.results]/3:
25287 <blockquote><pre>// 28.10.1, construct/copy/destroy:
25288 explicit match_results(const Allocator& a = Allocator());
25289 match_results(const match_results& m);
25290 <ins>match_results(match_results&& m);</ins>
25291 match_results& operator=(const match_results& m);
25292 <ins>match_results& operator=(match_results&& m);</ins>
25294 </pre></blockquote>
25299 Add the following new prototype descriptions to 28.10.1 [re.results.const]
25300 using the table numbering of
25301 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2723.pdf">N2723</a>:
25305 <pre>match_results(const match_results& m);
25309 4 <i>Effects:</i> Constructs an object of class <tt>match_results</tt>, as a
25310 copy of <tt>m</tt>.
25313 <pre><ins>match_results(match_results&& m);</ins>
25318 <ins>5 <i>Effects:</i> Move-constructs an object of class <tt>match_results</tt>
25319 from <tt>m</tt> satisfying the same postconditions as Table 132. Additionally
25320 the stored <tt>Allocator</tt> value is move constructed from <tt>m.get_allocator()</tt>.
25321 After the initialization of <tt>*this</tt> sets <tt>m</tt> to an unspecified but valid
25326 <ins>6 <i>Throws:</i> Nothing if the allocator's move constructor throws nothing.</ins>
25330 <pre>match_results& operator=(const match_results& m);
25334 7 <i>Effects:</i> Assigns <tt>m</tt> to <tt>*this</tt>. The postconditions of this function are
25335 indicated in Table 132.
25338 <pre><ins>match_results& operator=(match_results&& m);</ins>
25343 <ins>8 <i>Effects:</i> Move-assigns <tt>m</tt> to <tt>*this</tt>. The postconditions of this
25344 function are indicated in Table 132. After the assignment, <tt>m</tt> is in
25345 a valid but unspecified state.</ins>
25349 <ins>9 <i>Throws:</i> Nothing.</ins>
25362 <h3><a name="1210"></a>1210. iterator reachability should not require a container</h3>
25363 <p><b>Section:</b> 24.2 [iterator.requirements] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
25364 <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-09-18 <b>Last modified:</b> 2009-09-19</p>
25365 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#iterator.requirements">active issues</a> in [iterator.requirements].</p>
25366 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#iterator.requirements">issues</a> in [iterator.requirements].</p>
25367 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
25368 <p><b>Discussion:</b></p>
25370 p6 Iterator requirements 24.2 [iterator.requirements]
25374 An iterator <tt>j</tt> is called reachable from an iterator <tt>i</tt> if and only if
25375 there is a finite sequence of applications of the expression <tt>++i</tt> that
25376 makes <tt>i == j</tt>. If <tt>j</tt> is reachable from <tt>i</tt>, they refer to the same
25381 A good example would be stream iterators, which do not refer to a
25382 container. Typically, the end iterator from a range of stream iterators
25383 will compare equal for many such ranges. I suggest striking the second
25388 An alternative wording might be:
25392 If <tt>j</tt> is reachable from <tt>i</tt>, and both <tt>i</tt> and
25393 <tt>j</tt> are dereferencable iterators, then they refer to the same
25398 <p><b>Proposed resolution:</b></p>
25400 Change 24.2 [iterator.requirements], p6:
25404 An iterator <tt>j</tt> is called <i>reachable</i> from an iterator
25405 <tt>i</tt> if and only if there is a finite sequence of applications of
25406 the expression <tt>++i</tt> that makes <tt>i == j</tt>. <del>If
25407 <tt>j</tt> is reachable from <tt>i</tt>, they refer to the same
25416 <h3><a name="1211"></a>1211. move iterators should be restricted as input iterators</h3>
25417 <p><b>Section:</b> 24.5.3.1 [move.iterator] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
25418 <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-09-18 <b>Last modified:</b> 2009-10-26</p>
25419 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#move.iterator">issues</a> in [move.iterator].</p>
25420 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
25421 <p><b>Discussion:</b></p>
25423 I contend that while we can support both bidirectional and random access
25424 traversal, the category of a move iterator should never be better than
25425 <tt>input_iterator_tag</tt>.
25429 The contentious point is that you cannot truly have a multipass property
25430 when values are moved from a range. This is contentious if you view a
25431 moved-from object as still holding a valid value within the range.
25435 The second reason comes from the Forward Iterator requirements table:
25440 Forward iterators 24.2.3 [forward.iterators]
25444 Table 102 -- Forward iterator requirements
25448 For expression <tt>*a</tt> the return type is:
25449 "<tt>T&</tt> if <tt>X</tt> is mutable, otherwise <tt>const T&</tt>"
25454 There is a similar constraint on <tt>a->m</tt>.
25458 There is no support for rvalue references, nor do I believe their should
25459 be. Again, opinions may vary but either this table or the definition of
25460 <tt>move_iterator</tt> need updating.
25464 Note: this requirement probably need updating anyway if we wish to
25465 support proxy iterators but I am waiting to see a new working paper
25466 before filing that issue.
25470 2009-10 post-Santa Cruz:
25475 Move to Open. Howard to put his rationale mentioned above into the issue
25480 2009-10-26 Howard adds:
25486 <tt>vector::insert(pos, iter, iter)</tt> is significantly more effcient when
25487 <tt>iter</tt> is a random access iterator, as compared to when it is an
25492 When <tt>iter</tt> is an input iterator, the best algorithm
25493 is to append the inserted range to the end of the <tt>vector</tt> using
25494 <tt>push_back</tt>. This may involve several reallocations before the input
25495 range is exhausted. After the append, then one can use <tt>std::rotate</tt>
25496 to place the inserted range into the correct position in the vector.
25500 But when <tt>iter</tt> is a random access iterator, the best algorithm
25501 is to first compute the size of the range to be inserted (<tt>last - first</tt>),
25502 do a buffer reallocation if necessary, scoot existing elements in the <tt>vector</tt>
25503 down to make the "hole", and then insert the new elements directly to their correct
25508 The insert-with-random-access-iterators algorithm is considerably more efficient
25509 than the insert-with-input-iterators algorithm
25516 <blockquote><pre>vector<A> v;
25517 <font color="#c80000">// ... build up a large vector of A ...</font>
25518 vector<A> temp;
25519 <font color="#c80000">// ... build up a large temporary vector of A to later be inserted ...</font>
25520 typedef move_iterator<vector<A>::iterator> MI;
25521 <font color="#c80000">// Now insert the temporary elements:</font>
25522 v.insert(v.begin() + N, MI(temp.begin()), MI(temp.end()));
25523 </pre></blockquote>
25526 A major motivation for using <tt>move_iterator</tt> in the above example is the
25527 expectation that <tt>A</tt> is cheap to move but expensive to copy. I.e. the
25528 customer is looking for <em>high performance</em>. If we allow <tt>vector::insert</tt>
25529 to subtract two <tt>MI</tt>'s to get the distance between them, the customer enjoys
25530 substantially better performance, compared to if we say that <tt>vector::insert</tt>
25531 can not subtract two <tt>MI</tt>'s.
25535 I can find no rationale for not giving this performance boost to our customers.
25536 Therefore I am strongly against restricting <tt>move_iterator</tt> to the
25537 <tt>input_iterator_tag</tt> category.
25541 I believe that the requirement that forward
25542 iterators have a dereference that returns an lvalue reference to cause unacceptable
25543 pessimization. For example <tt>vector<bool>::iterator</tt> also does not return
25544 a <tt>bool&</tt> on dereference. Yet I am not aware of a single vendor that
25545 is willing to ship <tt>vector<bool>::iterator</tt> as an input iterator.
25546 Everyone classifies it as a random access iterator. Not only does this not
25547 cause any problems, it prevents significant performance problems.
25554 <p><b>Proposed resolution:</b></p>
25556 Class template move_iterator 24.5.3.1 [move.iterator]
25559 <blockquote><pre>namespace std {
25560 template <class Iterator>
25561 class move_iterator {
25564 typedef <del>typename iterator_traits<Iterator>::iterator_category</del> <ins>input_iterator_tag</ins> iterator_category;
25565 </pre></blockquote>
25572 <h3><a name="1212"></a>1212. result of post-increment/decrement operator</h3>
25573 <p><b>Section:</b> 24.2 [iterator.requirements] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
25574 <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-09-18 <b>Last modified:</b> 2009-09-19</p>
25575 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#iterator.requirements">active issues</a> in [iterator.requirements].</p>
25576 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#iterator.requirements">issues</a> in [iterator.requirements].</p>
25577 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
25578 <p><b>Discussion:</b></p>
25579 <p>Forward iterator and bidirectional iterator place different
25580 requirements on the result of post-increment/decrement operator. The
25581 same form should be used in each case.
25588 <blockquote><pre>Table 102 -- Forward iterator requirements
25589 Table 103 -- Bidirectional iterator requirements
25591 r++ : convertible to const X&
25592 r-- : convertible to const X&
25594 *r++ : T& if X is mutable, otherwise const T&
25595 *r-- : convertible to T
25596 </pre></blockquote>
25599 <p><b>Proposed resolution:</b></p>
25606 <h3><a name="1213"></a>1213. Meaning of valid and singular iterator underspecified</h3>
25607 <p><b>Section:</b> 24.2 [iterator.requirements] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
25608 <b>Submitter:</b> Daniel Krügler <b>Opened:</b> 2009-09-19 <b>Last modified:</b> 2009-09-19</p>
25609 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#iterator.requirements">active issues</a> in [iterator.requirements].</p>
25610 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#iterator.requirements">issues</a> in [iterator.requirements].</p>
25611 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
25612 <p><b>Discussion:</b></p>
25614 The terms <em>valid</em> iterator and <em>singular</em> aren't
25615 properly defined. The fuzziness of those terms became even worse
25616 after the resolution of <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#208">208</a> (including further updates by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#278">278</a>). In
25617 24.2 [iterator.requirements] as of
25618 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2723.pdf">N2723</a>
25619 the standard says now:
25624 5 - These values are called past-the-end values. Values of an iterator <tt>i</tt> for
25625 which the expression <tt>*i</tt> is defined are called dereferenceable. The library
25626 never assumes that past-the-end values are dereferenceable. Iterators
25627 can also have singular values that are not associated with any
25628 container. [...] Results of most expressions are undefined for singular
25629 values; the only exceptions are destroying an iterator that holds a
25630 singular value and the assignment of a non-singular value to an iterator
25631 that holds a singular value. [...] Dereferenceable values are always
25636 10 - An invalid iterator is an iterator that may be singular.
25641 First, issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#208">208</a> intentionally removed the earlier constraint that past-the-end
25642 values are always non-singular. The reason for this was to support null
25643 pointers as past-the-end iterators of e.g. empty sequences. But there
25644 seem to exist different views on what a singular (iterator) value is. E.g.
25645 according to the <a href="http://www.sgi.com/tech/stl/trivial.html">SGI definition</a>
25646 a null pointer is <em>not</em> a singular value:
25650 Dereferenceable iterators are always nonsingular, but the converse is
25652 For example, a null pointer is nonsingular (there are well defined operations
25653 involving null pointers) even thought it is not dereferenceable.
25657 and <a href="http://www.sgi.com/tech/stl/InputIterator.html">proceeds</a>:
25661 An iterator is valid if it is dereferenceable or past-the-end.
25665 Even if the standard prefers a different meaning of singular here, the
25667 incomplete, because by restricting feasible expressions of singular
25669 destruction and assignment isn't sufficient for a past-the-end
25670 iterator: Of-course
25671 it must still be equality-comparable and in general be a readable value.
25675 Second, the standard doesn't clearly say whether a past-the-end value is
25676 a valid iterator or not. E.g. 20.8.13 [specialized.algorithms]/1 says:
25680 In all of the following algorithms, the formal template parameter
25681 <tt>ForwardIterator</tt>
25682 is required to satisfy the requirements of a forward iterator (24.1.3)
25684 required to have the property that no exceptions are thrown from [..], or
25685 dereference of valid iterators.
25689 The standard should make better clear what "singular pointer" and "valid
25690 iterator" means. The fact that the meaning of a valid <em>value</em>
25691 has a core language meaning doesn't imply that for an iterator concept
25692 the term "valid iterator" has the same meaning.
25696 Let me add a final example: In X [allocator.concepts.members] of
25697 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2914.pdf">N2914</a>
25701 <blockquote><pre>pointer X::allocate(size_type n);
25705 11 <i>Returns:</i> a pointer to the allocated memory. [<i>Note:</i> if <tt>n == 0</tt>, the return
25706 value is unspecified. —<i>end note</i>]
25713 <pre>void X::deallocate(pointer p, size_type n);
25717 <i>Preconditions:</i> <tt>p</tt> shall be a non-singular pointer value obtained from a call
25718 to <tt>allocate()</tt> on this allocator or one that compares equal to it.
25723 If singular pointer value would include null pointers this make the
25725 unclear if the pointer value is a result of <tt>allocate(0)</tt>: Since the return value
25726 is unspecified, it could be a null pointer. Does that mean that programmers
25727 need to check the pointer value for a null value before calling deallocate?
25731 <p><b>Proposed resolution:</b></p>
25738 <h3><a name="1214"></a>1214. Insufficient/inconsistent key immutability requirements for associative containers</h3>
25739 <p><b>Section:</b> 23.2.4 [associative.reqmts] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
25740 <b>Submitter:</b> Daniel Krügler <b>Opened:</b> 2009-09-20 <b>Last modified:</b> 2009-09-20</p>
25741 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#associative.reqmts">active issues</a> in [associative.reqmts].</p>
25742 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#associative.reqmts">issues</a> in [associative.reqmts].</p>
25743 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
25744 <p><b>Discussion:</b></p>
25746 Scott Meyers' mentions on a recent posting on <a href="http://groups.google.de/group/comp.std.c++/msg/6f9160fc428bcbea">c.s.c++</a>
25747 some arguments that point to an incomplete resolution
25748 of <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#103">103</a> and to an inconsistency of requirements on keys in ordered and
25749 unordered associative
25755 1) <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#103">103</a> introduced the term immutable without defining it in a unique manner in
25756 23.2.4 [associative.reqmts]/5:
25760 [..] Keys in an associative container are immutable.
25764 According to conventional dictionaries immutable is an unconditional way of
25765 saying that something cannot be changed. So without any further explicit
25766 allowance a user <em>always</em> runs into undefined behavior if (s)he attempts
25767 to modify such a key. IMO this was not the intend of the committee to resolve
25768 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#103">103</a> in that way because the comments suggest an interpretation that
25769 should give any user the freedom to modify the key in an <em>explicit</em> way
25770 <em>provided</em> it would not affect the sort order in that container.
25774 2) Another observation was that surprisingly no similar 'safety guards'
25775 exists against unintentional key changes for the unordered associative
25776 containers, specifically there is no such requirement as in
25777 23.2.4 [associative.reqmts]/6 that "both <tt>iterator</tt> and <tt>const_iterator</tt> are constant
25778 iterators". But the need for such protection against unintentional
25779 changes as well as the constraints in which manner any explicit
25780 changes may be performed are both missing and necessary, because
25781 such changes could potentially change the <em>equivalence</em> of keys that
25782 is measured by the <tt>hasher</tt> and <tt>key_equal</tt>.
25786 I suggest to fix the unconditional wording involved with "immutable keys"
25787 by at least adding a hint for the reader that users <em>may</em> perform such
25788 changes in an explicit manner <em>and</em> to perform similar wording changes
25789 as <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#103">103</a> did for the ordered associative containers also for the unordered
25795 <p><b>Proposed resolution:</b></p>
25802 <h3><a name="1215"></a>1215. <tt>list::merge</tt> with unequal allocators</h3>
25803 <p><b>Section:</b> 23.3.4.4 [list.ops] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
25804 <b>Submitter:</b> Pablo Halpern <b>Opened:</b> 2009-09-24 <b>Last modified:</b> 2009-09-24</p>
25805 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#list.ops">active issues</a> in [list.ops].</p>
25806 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#list.ops">issues</a> in [list.ops].</p>
25807 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
25808 <p><b>Discussion:</b></p>
25810 In Bellevue (I think), we passed
25811 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2525.pdf">N2525</a>,
25812 which, among other things, specifies that the behavior of
25813 <tt>list::splice</tt> is undefined if the allocators of the two lists
25814 being spliced do not compare equal. The same rationale should apply to
25815 <tt>list::merge</tt>. The intent of <tt>list::merge</tt> (AFAIK) is to
25816 move nodes from one sorted <tt>list</tt> into another sorted
25817 <tt>list</tt> without copying the elements. This is possible only if the
25818 allocators compare equal.
25822 <p><b>Proposed resolution:</b></p>
25824 Relative to the August 2009 WP,
25825 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2857.pdf">N2857</a>,
25826 change 23.3.4.4 [list.ops],
25827 paragraphs 22-25 as follows:
25831 <pre>void merge(list&& x);
25832 template <class Compare> void merge(list&& x, Compare comp);
25836 <i>Requires</i>: both the list and the argument list shall be sorted
25837 according to operator< or comp.
25840 <i>Effects</i>: If <tt>(&x == this)</tt> does nothing; otherwise, merges the
25841 two sorted ranges <tt>[begin(), end())</tt> and <tt>[x.begin(),
25842 x.end())</tt>. The result is a range in which the elements will be
25843 sorted in non-decreasing order according to the ordering defined by
25844 <tt>comp</tt>; that is, for every iterator <tt>i</tt>, in the range other than the
25845 <tt>first</tt>, the condition <tt>comp(*i, *(i - 1)<ins>)</ins></tt> will be
25849 <i>Remarks</i>: Stable. If <tt>(&x != this)</tt> the range <tt>[x.begin(), x.end())</tt> is
25850 empty after the merge. <ins>No elements are copied by this operation.
25851 The behavior is undefined if <tt>this->get_allocator() !=
25852 x.get_allocator()</tt>.</ins>
25855 <i>Complexity</i>: At most <tt>size() + x.size() - 1</tt> applications of <tt>comp</tt>
25856 if <tt>(&x != this)</tt>; otherwise, no applications of <tt>comp</tt> are performed. If an
25857 exception is thrown other than by a comparison there are no effects.
25867 <h3><a name="1216"></a>1216. LWG 1066 Incomplete?</h3>
25868 <p><b>Section:</b> 18.8.6 [except.nested] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
25869 <b>Submitter:</b> Pete Becker <b>Opened:</b> 2009-09-25 <b>Last modified:</b> 2009-10-20</p>
25870 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#except.nested">active issues</a> in [except.nested].</p>
25871 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#except.nested">issues</a> in [except.nested].</p>
25872 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
25873 <p><b>Discussion:</b></p>
25875 LWG <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1066">1066</a> adds <tt>[[noreturn]]</tt> to a bunch of things.
25876 It doesn't add it to <tt>rethrow_nested()</tt>, which seems like an obvious
25877 candidate. I've made the changes indicated in the issue, and haven't
25878 changed <tt>rethrow_nested()</tt>.
25892 <p><b>Proposed resolution:</b></p>
25894 Add <tt>[[noreturn]]</tt> to <tt>rethrow_nested()</tt> in 18.8.6 [except.nested].
25902 <h3><a name="1218"></a>1218. mutex destructor synchronization</h3>
25903 <p><b>Section:</b> 30.4.1 [thread.mutex.requirements] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
25904 <b>Submitter:</b> Jeffrey Yasskin <b>Opened:</b> 2009-09-30 <b>Last modified:</b> 2009-09-30</p>
25905 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#thread.mutex.requirements">active issues</a> in [thread.mutex.requirements].</p>
25906 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#thread.mutex.requirements">issues</a> in [thread.mutex.requirements].</p>
25907 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
25908 <p><b>Discussion:</b></p>
25910 If an object <tt>*o</tt> contains a mutex <tt>mu</tt> and a
25911 correctly-maintained reference count <tt>c</tt>, is the following code
25915 <blockquote><pre>o->mu.lock();
25916 bool del = (--(o->c) == 0);
25918 if (del) { delete o; }
25919 </pre></blockquote>
25922 If the implementation of <tt>mutex::unlock()</tt> can touch the mutex's
25923 memory after the moment it becomes free, this wouldn't be safe, and
25924 "Construction and destruction of an object of a Mutex type need not be
25925 thread-safe" 30.4.1 [thread.mutex.requirements] may imply that
25926 it's not safe. Still, it's useful to allow mutexes to guard reference
25927 counts, and if it's not allowed, users are likely to write bugs.
25931 <p><b>Proposed resolution:</b></p>
25940 <h3><a name="1219"></a>1219. unique_lock::lock and resource_deadlock_would_occur</h3>
25941 <p><b>Section:</b> 30.4.3.2.2 [thread.lock.unique.locking] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
25942 <b>Submitter:</b> Jeffrey Yasskin <b>Opened:</b> 2009-09-30 <b>Last modified:</b> 2009-09-30</p>
25943 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#thread.lock.unique.locking">active issues</a> in [thread.lock.unique.locking].</p>
25944 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#thread.lock.unique.locking">issues</a> in [thread.lock.unique.locking].</p>
25945 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
25946 <p><b>Discussion:</b></p>
25948 <tt>unique_lock::lock</tt> and friends raise
25949 "<tt>resource_deadlock_would_occur</tt> -- if the current thread already
25950 owns the mutex (i.e., on entry, <tt>owns</tt> is <tt>true</tt>)." 1)
25951 The current thread owning a mutex is not the same as any particular
25952 <tt>unique_lock::owns</tt> being <tt>true</tt>. 2) There's no need to
25953 raise this exception for a <tt>recursive_mutex</tt> if <tt>owns</tt> is
25954 <tt>false</tt>. 3) If <tt>owns</tt> is true, we need to raise some
25955 exception or the unique_lock will lose track of whether to unlock itself
25956 on destruction, but "deadlock" isn't it. For (3), s/bool owns/int
25957 ownership_level/ would fix it.
25961 <p><b>Proposed resolution:</b></p>
25968 <h3><a name="1220"></a>1220. What does condition_variable wait on?</h3>
25969 <p><b>Section:</b> 30.5 [thread.condition] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Tentatively Ready</a>
25970 <b>Submitter:</b> Jeffrey Yasskin <b>Opened:</b> 2009-09-30 <b>Last modified:</b> 2009-11-06</p>
25971 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#thread.condition">active issues</a> in [thread.condition].</p>
25972 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#thread.condition">issues</a> in [thread.condition].</p>
25973 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Tentatively%20Ready">Tentatively Ready</a> status.</p>
25974 <p><b>Discussion:</b></p>
25976 "Class <tt>condition_variable</tt> provides a condition variable that can only
25977 wait on an object of type <tt>unique_lock</tt>" should say "...object of type
25978 <tt>unique_lock<mutex></tt>"
25982 2009-11-06 Howard adds:
25987 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
25992 <p><b>Proposed resolution:</b></p>
25994 Change 30.5 [thread.condition], p1:
25998 Condition variables provide synchronization primitives used to block a
25999 thread until notified by some other thread that some condition is met or
26000 until a system time is reached. Class <tt>condition_variable</tt>
26001 provides a condition variable that can only wait on an object of type
26002 <tt>unique_lock<ins><mutex></ins></tt>, allowing maximum
26003 efficiency on some platforms. Class <tt>condition_variable_any</tt>
26004 provides a general condition variable that can wait on objects of
26005 user-supplied lock types.
26013 <h3><a name="1221"></a>1221. condition_variable wording</h3>
26014 <p><b>Section:</b> 30.5.1 [thread.condition.condvar] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
26015 <b>Submitter:</b> Jeffrey Yasskin <b>Opened:</b> 2009-09-30 <b>Last modified:</b> 2009-09-30</p>
26016 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#thread.condition.condvar">active issues</a> in [thread.condition.condvar].</p>
26017 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#thread.condition.condvar">issues</a> in [thread.condition.condvar].</p>
26018 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
26019 <p><b>Discussion:</b></p>
26021 30.5.1 [thread.condition.condvar] says:
26025 <pre>~condition_variable();
26028 <i>Precondition:</i> There shall be no thread blocked on <tt>*this</tt>.
26029 [<i>Note:</i> That is, all threads shall have been notified; they may
26030 subsequently block on the lock specified in the wait. Beware that
26031 destroying a <tt>condition_variable</tt> object while the corresponding
26032 predicate is <tt>false</tt> is likely to lead to undefined behavior.
26033 — <i>end note</i>]
26038 The text hasn't introduced the notion of a "corresponding predicate"
26043 <p><b>Proposed resolution:</b></p>
26050 <h3><a name="1222"></a>1222. condition_variable incorrect effects for exception safety</h3>
26051 <p><b>Section:</b> 30.5 [thread.condition] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
26052 <b>Submitter:</b> Jeffrey Yasskin <b>Opened:</b> 2009-09-30 <b>Last modified:</b> 2009-09-30</p>
26053 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#thread.condition">active issues</a> in [thread.condition].</p>
26054 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#thread.condition">issues</a> in [thread.condition].</p>
26055 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
26056 <p><b>Discussion:</b></p>
26058 30.5.1 [thread.condition.condvar] says:
26062 <pre>void wait(unique_lock<mutex>& lock);
26072 If the function exits via an exception, <tt>lock.unlock()</tt> shall be
26073 called prior to exiting the function scope.
26080 Should that be <tt>lock.lock()</tt>?
26084 <p><b>Proposed resolution:</b></p>
26087 Change 30.5.1 [thread.condition.condvar] p10:
26091 <pre>void wait(unique_lock<mutex>& lock);
26101 If the function exits via an exception, <tt>lock.<del>un</del>lock()</tt> shall be
26102 called prior to exiting the function scope.
26109 And make a similar change in p16, and in 30.5.2 [thread.condition.condvarany],
26119 <h3><a name="1223"></a>1223. condition_variable_any lock matching?</h3>
26120 <p><b>Section:</b> 30.5.2 [thread.condition.condvarany] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
26121 <b>Submitter:</b> Jeffrey Yasskin <b>Opened:</b> 2009-09-30 <b>Last modified:</b> 2009-09-30</p>
26122 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#thread.condition.condvarany">active issues</a> in [thread.condition.condvarany].</p>
26123 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#thread.condition.condvarany">issues</a> in [thread.condition.condvarany].</p>
26124 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
26125 <p><b>Discussion:</b></p>
26127 For <tt>condition_variable_any</tt>, must all lock arguments to concurrent wait calls
26128 "match" in some way, similar to the requirement in
26129 30.5.1 [thread.condition.condvar] that <tt>lock.mutex()</tt> returns the same
26130 value for each of the lock arguments supplied by all concurrently
26131 waiting threads (via <tt>wait</tt> or <tt>timed_wait</tt>)?
26136 <p><b>Proposed resolution:</b></p>
26143 <h3><a name="1224"></a>1224. condition_variable_any support for recursive mutexes?</h3>
26144 <p><b>Section:</b> 30.5.2 [thread.condition.condvarany] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
26145 <b>Submitter:</b> Jeffrey Yasskin <b>Opened:</b> 2009-09-30 <b>Last modified:</b> 2009-09-30</p>
26146 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#thread.condition.condvarany">active issues</a> in [thread.condition.condvarany].</p>
26147 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#thread.condition.condvarany">issues</a> in [thread.condition.condvarany].</p>
26148 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
26149 <p><b>Discussion:</b></p>
26151 For <tt>condition_variable_any</tt>, are recursive mutexes allowed? (I think "no")
26156 <p><b>Proposed resolution:</b></p>
26163 <h3><a name="1225"></a>1225. C++0x result_of issue </h3>
26164 <p><b>Section:</b> 20.7.4 [func.ret] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
26165 <b>Submitter:</b> Sebastian Gesemann <b>Opened:</b> 2009-10-05 <b>Last modified:</b> 2009-10-17</p>
26166 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#func.ret">issues</a> in [func.ret].</p>
26167 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
26168 <p><b>Discussion:</b></p>
26170 I think the text about <tt>std::result_of</tt> could be a little more precise.
26172 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2960.pdf">N2960</a>...
26177 20.7.4 [func.ret] Function object return types
26180 <pre>template<class> class result_of;
26182 template<class Fn, class... ArgTypes>
26183 class result_of<Fn(ArgTypes...)> {
26185 typedef <i>see below</i> type;
26190 Given an rvalue <tt>fn</tt> of type <tt>Fn</tt> and values <tt>t1, t2,
26191 ..., tN</tt> of types <tt>T1, T2, ... TN</tt> in <tt>ArgTypes</tt>
26192 respectivly, the <tt>type</tt> member is the result type of the
26193 expression <tt>fn(t1,t2,...,tN)</tt>. the values <tt>ti</tt> are lvalues
26194 when the corresponding type <tt>Ti</tt> is an lvalue-reference type, and
26200 This text doesn't seem to consider lvalue reference types for <tt>Fn</tt>.
26201 Also, it's not clear whether this class template can be used for
26202 "SFINAE" like <tt>std::enable_if</tt>. Example:
26205 <blockquote><pre>template<typename Fn, typename... Args>
26206 typename std::result_of<Fn(Args...)>::type
26207 apply(Fn && fn, Args && ...args)
26209 // Fn may be an lvalue reference, too
26210 return std::forward<Fn>(fn)(std::forward<Args>(args)...);
26212 </pre></blockquote>
26215 Either <tt>std::result_of<...></tt> can be instantiated and simply may not have
26216 a typedef "<tt>type</tt>" (-->SFINAE) or instantiating the class template for
26217 some type combinations will be a "hard" compile-time error.
26221 <p><b>Proposed resolution:</b></p>
26224 These changes will require compiler support
26229 Change 20.7.4 [func.ret]:
26232 <blockquote><pre>template<class> class result_of; // <i>undefined</i>
26234 template<class Fn, class... ArgTypes>
26235 class result_of<Fn(ArgTypes...)> {
26237 <del>typedef</del> <i>see below</i> <del>type;</del>
26242 Given an rvalue <tt>fn</tt> of type <tt>Fn</tt> and values <tt>t1, t2,
26243 ..., tN</tt> of types <tt>T1, T2, ... TN</tt> in <tt>ArgTypes</tt>
26244 respectivly, the <tt>type</tt> member is the result type of the
26245 expression <tt>fn(t1,t2,...,tN)</tt>. the values <tt>ti</tt> are lvalues
26246 when the corresponding type <tt>Ti</tt> is an lvalue-reference type, and
26251 <ins>The class template <tt>result_of</tt> shall meet the requirements of a
26252 <i>TransformationTrait</i>: Given the types <tt>Fn</tt>, <tt>T1</tt>, <tt>T2</tt>, ..., <tt>TN</tt> every
26253 template specialization <tt>result_of<Fn(T1,T2,...,TN)></tt> shall define the
26254 member typedef type equivalent to <tt>decltype(<i>RE</i>)</tt> if and only if
26255 the expression <tt><i>RE</i></tt>
26258 <blockquote><pre><ins>
26259 value<Fn>() ( value<T1>(), value<T2>(), ... value<TN>() )
26260 </ins></pre></blockquote>
26263 would be well-formed. Otherwise, there shall be no member typedef
26264 <tt>type</tt> defined.
26270 The <tt>value<></tt> helper function is a utility Daniel Krügler
26272 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2958.html">N2958</a>.
26281 <h3><a name="1226"></a>1226. Incomplete changes of #890</h3>
26282 <p><b>Section:</b> 30.6.2 [futures.errors] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Tentatively Ready</a>
26283 <b>Submitter:</b> Daniel Krügler <b>Opened:</b> 2009-10-05 <b>Last modified:</b> 2009-10-27</p>
26284 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Tentatively%20Ready">Tentatively Ready</a> status.</p>
26285 <p><b>Discussion:</b></p>
26287 Defect issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#890">890</a> overlooked to adapt the <tt>future_category</tt> from
26288 30.6.1 [futures.overview] and 30.6.2 [futures.errors]:
26291 <blockquote><pre>extern const error_category* const future_category;
26292 </pre></blockquote>
26295 which should be similarly transformed into function form.
26304 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
26309 <p><b>Proposed resolution:</b></p>
26313 Change in 30.6.1 [futures.overview], header <tt><future></tt> synopsis:
26316 <blockquote><pre><del>extern</del> const error_category<ins>&</ins><del>* const</del> future_category<ins>()</ins>;
26317 </pre></blockquote>
26322 Change in 30.6.2 [futures.errors]:
26325 <blockquote><pre><del>extern</del> const error_category<ins>&</ins><del>* const</del> future_category<ins>()</ins>;
26330 <del>1- <tt>future_category</tt> shall point to a statically initialized object
26331 of a type derived from class <tt>error_category</tt>.</del>
26334 <ins>1- <i>Returns:</i> A reference to an object of a type
26335 derived from class <tt>error_category</tt>.</ins>
26339 <pre>constexpr error_code make_error_code(future_errc e);
26343 3 <i>Returns:</i> <tt>error_code(static_cast<int>(e),
26344 <del>*</del>future_category<ins>()</ins>)</tt>.
26347 <pre>constexpr error_code make_error_condition(future_errc e);
26351 4 <i>Returns:</i> <tt>error_condition(static_cast<int>(e),
26352 <del>*</del>future_category<ins>()</ins>)</tt>.
26363 <h3><a name="1227"></a>1227. <tt><bitset></tt> synopsis overspecified</h3>
26364 <p><b>Section:</b> 20.3.7 [template.bitset] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
26365 <b>Submitter:</b> Bo Persson <b>Opened:</b> 2009-10-05 <b>Last modified:</b> 2009-10-26</p>
26366 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#template.bitset">active issues</a> in [template.bitset].</p>
26367 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#template.bitset">issues</a> in [template.bitset].</p>
26368 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
26369 <p><b>Discussion:</b></p>
26371 The resolutions to some library defect reports, like <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#1178">1178</a>
26372 requires that <tt>#includes</tt> in each synopsis should be taken
26373 literally. This means that the <tt><bitset></tt> header now
26374 <em>must</em> include <tt><stdexcept></tt>, even though none of the
26375 exceptions are mentioned in the <tt><bitset></tt> header.
26378 Many other classes are required to throw exceptions like
26379 <tt>invalid_argument</tt> and <tt>out_of_range</tt>, without explicitly
26380 including <tt><stdexcept></tt> in their synopsis. It is totally
26381 possible for implementations to throw the needed exceptions from utility
26382 functions, whose implementations are not visible in the headers.
26385 I propose that <tt><stdexcept></tt> is removed from the
26386 <tt><bitset></tt> header.
26390 2009-10 Santa Cruz:
26400 <p><b>Proposed resolution:</b></p>
26402 Change 20.3.7 [template.bitset]:
26405 <blockquote><pre>#include <cstddef> // for size_t
26406 #include <string>
26407 <del>#include <stdexcept> // for invalid_argument,</del>
26408 <del>// out_of_range, overflow_error</del>
26409 #include <iosfwd> // for istream, ostream
26412 </pre></blockquote>
26419 <h3><a name="1228"></a>1228. User-specialized nothrow type traits</h3>
26420 <p><b>Section:</b> 20.6.4.3 [meta.unary.prop] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Open">Open</a>
26421 <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-10-07 <b>Last modified:</b> 2009-10-26</p>
26422 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#meta.unary.prop">active issues</a> in [meta.unary.prop].</p>
26423 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#meta.unary.prop">issues</a> in [meta.unary.prop].</p>
26424 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Open">Open</a> status.</p>
26425 <p><b>Discussion:</b></p>
26427 According to p1 20.6.2 [meta.type.synop]:
26431 The behavior of a program that adds specializations for any of the class
26432 templates defined in this subclause is undefined unless otherwise
26437 I believe we should 'otherwise specify' for the nothrow traits, are
26438 these are exactly the use cases where the end user actually has more
26439 information than the compiler.
26443 2009-10 Santa Cruz:
26448 Moved to Open. Definitely need to give the users the ability to ensure
26449 that the traits give the right answers. Unsure we want to give them the
26450 ability to say this in more than one way. Believes the noexcept proposal
26451 already gives this.
26456 <p><b>Proposed resolution:</b></p>
26458 Add the following comment:
26462 user specialization permitted to derive from <tt>std::true_type</tt> when the
26463 operation is known not to throw.
26467 to the following traits in 20.6.4.3 [meta.unary.prop] Table 43 Type
26468 property predicates.
26472 This may require a new Comments column
26476 <blockquote><pre>has_nothrow_default_constructor
26477 has_nothrow_copy_constructor
26479 </pre></blockquote>
26486 <h3><a name="1231"></a>1231. <tt>weak_ptr</tt> comparisons incompletely resolved</h3>
26487 <p><b>Section:</b> 20.8.15.3.5 [util.smartptr.weak.obs] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Tentatively Ready</a>
26488 <b>Submitter:</b> Daniel Krügler <b>Opened:</b> 2009-10-10 <b>Last modified:</b> 2009-11-06</p>
26489 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Tentatively%20Ready">Tentatively Ready</a> status.</p>
26490 <p><b>Discussion:</b></p>
26493 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2637.pdf">n2637</a>
26494 paper suggested several updates of the ordering semantics of
26495 <tt>shared_ptr</tt>
26496 and <tt>weak_ptr</tt>, among those the explicit comparison operators of <tt>weak_ptr</tt> were
26497 removed/deleted, instead a corresponding functor <tt>owner_less</tt> was added.
26500 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2637.pdf">n2637</a>
26501 did not clearly enough specify, how the previous wording
26503 the comparison semantics of <tt>weak_ptr</tt> should be removed.
26507 2009-11-06 Howard adds:
26512 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
26517 <p><b>Proposed resolution:</b></p>
26521 Change 20.8.15.3 [util.smartptr.weak]/2 as described, the intention is to fix
26522 the now no longer valid
26523 requirement that <tt>weak_ptr</tt> is <tt>LessComparable</tt> [Note the deleted comma]:
26527 Specializations of <tt>weak_ptr</tt> shall be <tt>CopyConstructible</tt><del>,</del>
26528 <ins>and</ins> <tt>CopyAssignable</tt>,
26529 <del>and <tt>LessThanComparable</tt>,</del> allowing their use in standard containers.
26535 In 20.8.15.3.5 [util.smartptr.weak.obs] remove the paragraphs 9-11 including prototype:
26539 <del>template<class T, class U> bool operator<(const weak_ptr<T>& a, const weak_ptr<U>& b);</del>
26542 <del><i>Returns:</i> an unspecified value such that</del>
26546 <del><tt>operator<</tt> is a strict weak ordering as described in 25.4;</del>
26549 <del>under the equivalence relation defined by <tt>operator<</tt>, <tt>!(a
26550 < b) && !(b < a)</tt>, two <tt>weak_ptr</tt> instances are
26551 equivalent if and only if they share ownership or are both empty.</del>
26556 <del><i>Throws:</i> nothing.</del>
26560 <del>[<i>Note:</i> Allows <tt>weak_ptr</tt> objects to be used as keys in associative
26561 containers. — <i>end note</i>]</del>
26572 <h3><a name="1233"></a>1233. Missing <tt>unique_ptr</tt> signatures in synopsis</h3>
26573 <p><b>Section:</b> 20.8 [memory] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#NAD%20Editorial">Tentatively NAD Editorial</a>
26574 <b>Submitter:</b> Daniel Krügler <b>Opened:</b> 2009-10-11 <b>Last modified:</b> 2009-11-04</p>
26575 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#memory">issues</a> in [memory].</p>
26576 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Tentatively%20NAD%20Editorial">Tentatively NAD Editorial</a> status.</p>
26577 <p><b>Discussion:</b></p>
26579 Related to <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#296">296</a>. Some <tt>unique_ptr</tt> signatures are missing
26580 from the synopsis in 20.8 [memory].
26584 2009-11-04 Howard adds:
26589 Moved to Tentatively NAD Editorial. The editor has adopted the fix.
26593 <p><b>Proposed resolution:</b></p>
26595 Add in 20.8 [memory], Header <tt><memory></tt> synopsis
26596 missing declarations as shown below:
26599 <blockquote><pre>// 20.8.11 Class unique_ptr:
26600 template <class X> class default_delete;
26601 <ins>template<class T> struct default_delete<T[]>;</ins>
26602 template <class X, class D = default_delete<T>> class unique_ptr;
26603 <ins>template<class T, class D> class unique_ptr<T[], D>;</ins>
26605 <ins>template<class T, class D> void swap(unique_ptr<T, D>& x, unique_ptr<T, D>& y);</ins>
26607 <ins>template<class T1, class D1, class T2, class D2>
26608 bool operator==(const unique_ptr<T1, D1>& x, const unique_ptr<T2, D2>& y);</ins>
26609 <ins>template<class T1, class D1, class T2, class D2>
26610 bool operator!=(const unique_ptr<T1, D1>& x, const unique_ptr<T2, D2>& y);</ins>
26611 <ins>template<class T1, class D1, class T2, class D2>
26612 bool operator<(const unique_ptr<T1, D1>& x, const unique_ptr<T2, D2>& y);</ins>
26613 <ins>template<class T1, class D1, class T2, class D2>
26614 bool operator<=(const unique_ptr<T1, D1>& x, const unique_ptr<T2, D2>& y);</ins>
26615 <ins>template<class T1, class D1, class T2, class D2>
26616 bool operator>(const unique_ptr<T1, D1>& x, const unique_ptr<T2, D2>& y);</ins>
26617 <ins>template<class T1, class D1, class T2, class D2>
26618 bool operator>=(const unique_ptr<T1, D1>& x, const unique_ptr<T2, D2>& y);</ins>
26619 </pre></blockquote>
26626 <h3><a name="1234"></a>1234. "Do the right thing" and NULL</h3>
26627 <p><b>Section:</b> 23.2.3 [sequence.reqmts] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
26628 <b>Submitter:</b> Matt Austern <b>Opened:</b> 2009-10-09 <b>Last modified:</b> 2009-10-13</p>
26629 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#sequence.reqmts">active issues</a> in [sequence.reqmts].</p>
26630 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#sequence.reqmts">issues</a> in [sequence.reqmts].</p>
26631 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
26632 <p><b>Discussion:</b></p>
26634 On g++ 4.2.4 (x86_64-linux-gnu), the following file gives a compile
26638 <blockquote><pre>#include <vector>
26639 void foo() { std::vector<int*> v(500l, NULL); }
26640 </pre></blockquote>
26643 Is this supposed to work?
26647 The issue: if <tt>NULL</tt> happens to be defined as <tt>0l</tt>, this is an invocation of
26648 the constructor with two arguments of the same integral type.
26649 23.2.3 [sequence.reqmts]/11 says that this will behave as if the the
26650 overloaded constructor
26653 <blockquote><pre>X(size_type, const value_type& = value_type(),
26654 const allocator_type& = allocator_type())
26655 </pre></blockquote>
26658 were called instead, with the arguments
26659 <tt>static_cast<size_type>(first)</tt>, <tt>last</tt> and
26660 <tt>alloc</tt>, respectively. However, it does not say whether this
26661 actually means invoking that constructor with the exact textual form of
26662 the arguments as supplied by the user, or whether the standard permits
26663 an implementation to invoke that constructor with variables of the same
26664 type and value as what the user passed in. In most cases this is a
26665 distinction without a difference. In this particular case it does make a
26666 difference, since one of those things is a null pointer constant and the
26671 Note that an implementation based on forwarding functions will use the
26672 latter interpretation.
26676 <p><b>Proposed resolution:</b></p>
26683 <h3><a name="1237"></a>1237. Constrained error_code/error_condition members</h3>
26684 <p><b>Section:</b> 19.5 [syserr] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Ready</a>
26685 <b>Submitter:</b> Daniel Krügler <b>Opened:</b> 2009-10-14 <b>Last modified:</b> 2009-10-26</p>
26686 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#syserr">issues</a> in [syserr].</p>
26687 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Ready">Ready</a> status.</p>
26688 <p><b>Discussion:</b></p>
26690 I'm just reflecting on the now SFINAE-constrained constructors
26691 and assignment operators of <tt>error_code</tt> and <tt>error_condition</tt>:
26694 These are the <em>only</em> library components that are pro-actively
26695 announcing that they are using <tt>std::enable_if</tt> as constraining tool,
26696 which has IMO several disadvantages:
26702 With the availability of template default arguments and
26703 decltype, using <tt>enable_if</tt> in C++0x standard library, seems
26704 unnecessary restricting implementation freedom. E.g. there
26705 should be not need for a useless specification of a dummy
26706 default function argument, which only confuses the reader.
26707 A more reasonable implementation could e.g. be
26710 <blockquote><pre>template <class ErrorCodeEnum
26711 class = typename enable_if<is_error_code_enum<ErrorCodeEnum>::value>::type>
26712 error_code(ErrorCodeEnum e);
26713 </pre></blockquote>
26716 As currently specified, the function signatures are so unreadable,
26717 that errors quite easily happen, see e.g. <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1229">1229</a>.
26723 We have a <em>lot</em> of constrained functions in other places, that
26724 now have a standard phrase that is easily understandable:
26728 <i>Remarks:</i> This constructor/function shall participate in overload
26729 resolution if and only if X.
26733 where X describes the condition. Why should these components deviate?
26739 If <tt>enable_if</tt> would <em>not</em> be explicitly specified, the standard library
26740 is much better prepared for the future. It would also be possible, that
26741 libraries with partial support for not-yet-standard-concepts could provide
26742 a much better diagnostic as is possible with <tt>enable_if</tt>. This again
26743 would allow for experimental concept implementations in the wild,
26744 which as a result would make concept standardization a much more
26745 natural thing, similar to the way as templates were standardized
26750 In summary: I consider it as a library defect that <tt>error_code</tt> and
26751 <tt>error_condition</tt> explicitly require a dependency to <tt>enable_if</tt> and
26752 do limit implementation freedom and I volunteer to prepare a
26753 corresponding resolution.
26759 2009-10-18 Beman adds:
26764 I support this proposed resolution, and thank Daniel for writing it up.
26768 2009-10 Santa Cruz:
26778 <p><b>Proposed resolution:</b></p>
26780 Should this resolution be accepted, I recommend to resolve <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1229">1229</a> as NAD
26787 In 19.5.2.1 [syserr.errcode.overview]/1, class <tt>error_code</tt>,
26788 change as indicated:
26791 <blockquote><pre>// 19.5.2.2 constructors:
26793 error_code(int val, const error_category& cat);
26794 template <class ErrorCodeEnum>
26795 error_code(ErrorCodeEnum e<del>,
26796 typename enable_if<is_error_code_enum<ErrorCodeEnum>::value>::type * = 0</del>);
26798 // 19.5.2.3 modifiers:
26799 void assign(int val, const error_category& cat);
26800 template <class ErrorCodeEnum>
26801 <del>typename enable_if<is_error_code_enum<ErrorCodeEnum>::value>::type</del><ins>error_code</ins>&
26802 operator=(ErrorCodeEnum e);
26804 </pre></blockquote>
26809 Change 19.5.2.2 [syserr.errcode.constructors] around the prototype before p. 7:
26812 <blockquote><pre>template <class ErrorCodeEnum>
26813 error_code(ErrorCodeEnum e<del>,
26814 typename enable_if<is_error_code_enum<ErrorCodeEnum>::value>::type * = 0</del>);
26818 <ins><i>Remarks:</i> This constructor shall not participate in overload
26820 <tt>is_error_code_enum<ErrorCodeEnum>::value == true</tt>.</ins>
26828 Change 19.5.2.3 [syserr.errcode.modifiers] around the prototype before p. 3:
26831 <blockquote><pre>template <class ErrorCodeEnum>
26832 <del>typename enable_if<is_error_code_enum<ErrorCodeEnum>::value>::type</del><ins>error_code</ins>&
26833 operator=(ErrorCodeEnum e);
26837 <ins><i>Remarks:</i> This operator shall not participate in overload resolution, unless
26838 <tt>is_error_code_enum<ErrorCodeEnum>::value == true</tt>.</ins>
26845 In 19.5.3.1 [syserr.errcondition.overview]/1, class <tt>error_condition</tt>, change
26849 <blockquote><pre>// 19.5.3.2 constructors:
26851 error_condition(int val, const error_category& cat);
26852 template <class ErrorConditionEnum>
26853 error_condition(ErrorConditionEnum e<del>,
26854 typename enable_if<is_error_condition_enum<ErrorConditionEnum>::type* = 0</del>);
26856 // 19.5.3.3 modifiers:
26857 void assign(int val, const error_category& cat);
26858 template<<del>typename</del><ins>class</ins> ErrorConditionEnum>
26859 <del>typename enable_if<is_error_condition_enum<ErrorConditionEnum>, error_code>::type</del><ins>error_condition</ins> &
26860 operator=( ErrorConditionEnum e );
26862 </pre></blockquote>
26867 Change 19.5.3.2 [syserr.errcondition.constructors] around the
26868 prototype before p. 7:
26871 <blockquote><pre>template <class ErrorConditionEnum>
26872 error_condition(ErrorConditionEnum e<del>,
26873 typename enable_if<is_error_condition_enum<ErrorConditionEnum>::value>::type* = 0</del>);
26876 <ins><i>Remarks:</i> This constructor shall not participate in overload
26878 <tt>is_error_condition_enum<ErrorConditionEnum>::value == true</tt>.</ins>
26885 Change 19.5.3.3 [syserr.errcondition.modifiers] around the
26886 prototype before p. 3:
26889 <blockquote><pre>template <class ErrorConditionEnum>
26890 <del>typename enable_if<is_error_condition_enum<ErrorConditionEnum>::value>::type</del><ins>error_condition</ins>&
26891 operator=(ErrorConditionEnum e);
26896 <ins><i>Remarks:</i> This operator shall not participate in overload resolution, unless
26897 <tt>is_error_condition_enum<ErrorConditionEnum>::value == true</tt>.</ins>
26901 <i>Postcondition:</i> <tt>*this == make_error_condition(e)</tt>.
26905 <ins><i>Returns:</i> <tt>*this</tt></ins>
26919 <h3><a name="1238"></a>1238. defining algorithms taking iterator for range</h3>
26920 <p><b>Section:</b> 25 [algorithms] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#NAD%20Future">Tentatively NAD Future</a>
26921 <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-10-15 <b>Last modified:</b> 2009-11-03</p>
26922 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#algorithms">active issues</a> in [algorithms].</p>
26923 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#algorithms">issues</a> in [algorithms].</p>
26924 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Tentatively%20NAD%20Future">Tentatively NAD Future</a> status.</p>
26925 <p><b>Discussion:</b></p>
26927 The library has many algorithms that take a source range represented by
26928 a pair of iterators, and the start of some second sequence given by a
26929 single iterator. Internally, these algorithms will produce undefined
26930 behaviour if the second 'range' is not as large as the input range, but
26931 none of the algorithms spell this out in Requires clauses, and there is
26932 no catch-all wording to cover this in clause 17 or the front matter of
26937 There was an attempt to provide such wording in paper
26938 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2944.pdf">n2944</a>
26940 seems incidental to the focus of the paper, and getting the wording of
26941 this issue right seems substantially more difficult than the simple
26942 approach taken in that paper. Such wording will be removed from an
26943 updated paper, and hopefully tracked via the LWG issues list instead.
26947 It seems there are several classes of problems here and finding wording
26948 to solve all in one paragraph could be too much. I suspect we need
26949 several overlapping requirements that should cover the desired range of
26954 Motivating examples:
26958 A good initial example is the <tt>swap_ranges</tt> algorithm. Here there is a
26959 clear requirement that <tt>first2</tt> refers to the start of a valid range at
26960 least as long as the range <tt>[first1, last1)</tt>. <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2944.pdf">n2944</a> tries to solve this
26961 by positing a hypothetical <tt>last2</tt> iterator that is implied by the
26962 signature, and requires <tt>distance(first2,last2) < distance(first1,last1)</tt>.
26963 This mostly works, although I am uncomfortable assuming that <tt>last2</tt> is
26964 clearly defined and well known without any description of how to obtain
26965 it (and I have no idea how to write that).
26969 A second motivating example might be the <tt>copy</tt> algorithm. Specifically,
26970 let us image a call like:
26973 <blockquote><pre>copy(istream_iterator<int>(is),istream_iterator(),ostream_iterator<int>(os));
26974 </pre></blockquote>
26977 In this case, our input iterators are literally simple <tt>InputIterators</tt>,
26978 and the destination is a simple <tt>OutputIterator</tt>. In neither case am I
26979 happy referring to <tt>std::distance</tt>, in fact it is not possible for the
26980 <tt>ostream_iterator</tt> at all as it does not meet the requirements. However,
26981 any wording we provide must cover both cases. Perhaps we might deduce
26982 <tt>last2 == ostream_iterator<int>{}</tt>, but that might not always be valid for
26983 user-defined iterator types. I can well imagine an 'infinite range'
26984 that writes to <tt>/dev/null</tt> and has no meaningful <tt>last2</tt>.
26988 The motivating example in <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2944.pdf">n2944</a> is <tt>std::equal</tt>, and that seems to fall somewhere between the
26993 Outlying examples might be <tt>partition_copy</tt> that takes two output
26994 iterators, and the <tt>_n</tt> algorithms where a range is specified by a
26995 specific number of iterations, rather than traditional iterator pair.
26996 We should also <em>not</em> accidentally apply inappropriate constraints to
26997 <tt>std::rotate</tt> which takes a third iterator that is not intended to be a
26998 separate range at all.
27002 I suspect we want some wording similar to:
27006 For algorithms that operate on ranges where the end iterator of the
27007 second range is not specified, the second range shall contain at least
27008 as many elements as the first.
27012 I don't think this quite captures the intent yet though. I am not sure
27013 if 'range' is the right term here rather than sequence. More awkwardly,
27014 I am not convinced we can describe an Output sequence such as produce by
27015 an <tt>ostream_iterator</tt> as "containing elements", at least not as a
27016 precondition to the call before they have been written.
27020 Another idea was to describe require that the trailing iterator support
27021 at least distance(input range) applications of <tt>operator++</tt> and may be
27022 written through the same number of times if a mutable/output iterator.
27026 We might also consider handling the case of an output range vs. an input
27027 range in separate paragraphs, if that simplifies how we describe some of
27032 2009-11-03 Howard adds:
27037 Moved to Tentatively NAD Future after 5 positive votes on c++std-lib.
27041 <p><b>Proposed resolution:</b></p>
27048 <h3><a name="1239"></a>1239. Defect report</h3>
27049 <p><b>Section:</b> 20.6.4.3 [meta.unary.prop] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#NAD%20Editorial">Tentatively NAD Editorial</a>
27050 <b>Submitter:</b> David Abrahams <b>Opened:</b> 2009-10-16 <b>Last modified:</b> 2009-10-26</p>
27051 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#meta.unary.prop">active issues</a> in [meta.unary.prop].</p>
27052 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#meta.unary.prop">issues</a> in [meta.unary.prop].</p>
27053 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Tentatively%20NAD%20Editorial">Tentatively NAD Editorial</a> status.</p>
27054 <p><b>Discussion:</b></p>
27056 Table 43 defines a number of traits that yield true for arrays of class
27057 types with the trait's property, but not arrays of other types with that
27058 property. For example, <tt>has_trivial_default_constructor</tt>:
27062 <tt>T</tt> is a trivial type (3.9) or a class type with a trivial default
27063 constructor (12.1) or an array of such a class type.
27067 2009-10 post-Santa Cruz:
27073 An array of a trivial type is a trivial type.
27076 Mark as Tentatively NAD Editorial. The wording is OK as is,
27077 since an array of a trivial type is a trivial type, but the wording as
27078 proposed might be clearer.
27084 <p><b>Proposed resolution:</b></p>
27086 Change all the traits in question following this pattern:
27090 <tt>T</tt> is a trivial type (3.9) or a class type with a trivial default
27091 constructor (12.1)<ins>,</ins> or an array of such a <del>class</del> type.
27095 i.e., add a comma and delete a "class."
27103 <h3><a name="1240"></a>1240. Deleted comparison functions of std::function not needed</h3>
27104 <p><b>Section:</b> 20.7.15.2 [func.wrap.func] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
27105 <b>Submitter:</b> Daniel Krügler <b>Opened:</b> 2009-10-18 <b>Last modified:</b> 2009-10-19</p>
27106 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#func.wrap.func">issues</a> in [func.wrap.func].</p>
27107 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
27108 <p><b>Discussion:</b></p>
27110 The class template <tt>std::function</tt> contains the following member
27114 <blockquote><pre>// deleted overloads close possible hole in the type system
27115 template<class R2, class... ArgTypes2>
27116 bool operator==(const function<R2(ArgTypes2...)>&) = delete;
27117 template<class R2, class... ArgTypes2>
27118 bool operator!=(const function<R2(ArgTypes2...)>&) = delete;
27119 </pre></blockquote>
27122 The leading comment here is part of the history of <tt>std::function</tt>, which
27123 was introduced with <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2002/n1402.html#undefined_operators">N1402</a>.
27124 During that time no explicit conversion functions existed, and the
27125 "safe-bool" idiom (based on pointers-to-member) was a popular
27126 technique. The only disadvantage of this idiom was that given two
27127 objects <tt>f1</tt> and <tt>f2</tt> of type <tt>std::function</tt> the expression
27130 <blockquote><pre>f1 == f2;
27131 </pre></blockquote>
27134 was well-formed, just because the built-in <tt>operator==</tt> for pointer to member
27135 was considered after a single user-defined conversion. To fix this, an
27136 overload set of <em>undefined</em> comparison functions was added,
27137 such that overload resolution would prefer those ending up in a linkage error.
27138 The new language facility of deleted functions provided a much better
27139 diagnostic mechanism to fix this issue.
27143 The central point of this issue is, that with the replacement of the
27144 safe-bool idiom by explicit conversion to bool the original "hole in the
27145 type system" does no longer exist and therefore the comment is wrong and
27146 the superfluous function definitions should be removed as well. An
27147 explicit conversion function is considered in direct-initialization
27148 situations only, which indirectly contain the so-called "contextual
27149 conversion to bool" (4 [conv]/3). These conversions are not considered for
27150 <tt>==</tt> or <tt>!=</tt> as defined by the core language.
27154 <p><b>Proposed resolution:</b></p>
27156 In 20.7.15.2 [func.wrap.func]/1, class function change as indicated:
27159 <blockquote><pre>// 20.7.15.2.3, function capacity:
27160 explicit operator bool() const;
27162 <del>// deleted overloads close possible hole in the type system</del>
27163 <del>template<class R2, class... ArgTypes2></del>
27164 <del>bool operator==(const function<R2(ArgTypes2...)>&) = delete;</del>
27165 <del>template<class R2, class... ArgTypes2></del>
27166 <del>bool operator!=(const function<R2(ArgTypes2...)>&) = delete;</del>
27167 </pre></blockquote>
27174 <h3><a name="1241"></a>1241. unique_copy needs to require EquivalenceRelation</h3>
27175 <p><b>Section:</b> 25.3.9 [alg.unique] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Ready">Tentatively Ready</a>
27176 <b>Submitter:</b> Daniel Krügler <b>Opened:</b> 2009-10-17 <b>Last modified:</b> 2009-10-31</p>
27177 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#alg.unique">issues</a> in [alg.unique].</p>
27178 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Tentatively%20Ready">Tentatively Ready</a> status.</p>
27179 <p><b>Discussion:</b></p>
27181 A lot of fixes were silently applied during concept-time and we should
27182 not lose them again. The Requires clause of 25.3.9 [alg.unique]/5
27183 doesn't mention that <tt>==</tt> and the predicate need to satisfy an
27184 <tt>EquivalenceRelation</tt>, as it is correctly said for
27185 <tt>unique</tt>. This was intentionally fixed during conceptification,
27189 <blockquote><pre>template<InputIterator InIter, class OutIter>
27190 requires OutputIterator<OutIter, RvalueOf<InIter::value_type>::type>
27191 && EqualityComparable<InIter::value_type>
27192 && HasAssign<InIter::value_type, InIter::reference>
27193 && Constructible<InIter::value_type, InIter::reference>
27194 OutIter unique_copy(InIter first, InIter last, OutIter result);
27196 template<InputIterator InIter, class OutIter,
27197 EquivalenceRelation<auto, InIter::value_type> Pred>
27198 requires OutputIterator<OutIter, RvalueOf<InIter::value_type>::type>
27199 && HasAssign<InIter::value_type, InIter::reference>
27200 && Constructible<InIter::value_type, InIter::reference>
27201 && CopyConstructible<Pred>
27202 OutIter unique_copy(InIter first, InIter last, OutIter result, Pred pred);
27203 </pre></blockquote>
27206 Note that EqualityComparable implied an equivalence relation.
27210 N.B. <tt>adjacent_find</tt> was also specified to require
27211 <tt>EquivalenceRelation</tt>, but that was considered as a defect in
27212 concepts, see <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#1000">1000</a>
27217 2009-10-31 Howard adds:
27222 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
27227 <p><b>Proposed resolution:</b></p>
27229 Change 25.3.9 [alg.unique]/5 as indicated:
27232 <blockquote><pre>template<class InputIterator, class OutputIterator>
27234 unique_copy(InputIterator first, InputIterator last, OutputIterator result);
27236 template<class InputIterator, class OutputIterator, class BinaryPredicate>
27238 unique_copy(InputIterator first, InputIterator last,
27239 OutputIterator result, BinaryPredicate pred);
27242 <i>Requires:</i> <ins>The comparison function shall be an equivalence
27243 relation.</ins> The ranges <tt>[first,last)</tt> and
27244 <tt>[result,result+(last-first))</tt> shall not overlap. The expression
27245 <tt>*result = *first</tt> shall be valid. If neither
27246 <tt>InputIterator</tt> nor <tt>OutputIterator</tt> meets the
27247 requirements of forward iterator then the value type of
27248 <tt>InputIterator</tt> shall be <tt>CopyConstructible</tt> (34) and
27249 <tt>CopyAssignable</tt> (table 36). Otherwise <tt>CopyConstructible</tt>
27259 <h3><a name="1244"></a>1244. wait_*() in *future for synchronous functions</h3>
27260 <p><b>Section:</b> 30.6 [futures] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
27261 <b>Submitter:</b> Detlef Vollmann <b>Opened:</b> 2009-10-22 <b>Last modified:</b> 2009-10-23</p>
27262 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#futures">issues</a> in [futures].</p>
27263 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
27264 <p><b>Discussion:</b></p>
27266 With the addition of <tt>async()</tt>, a <tt>future</tt> might be
27267 associated with a function that is not running in a different thread but
27268 is stored to by run synchronously on the <tt>get()</tt> call. It's not
27269 clear what the <tt>wait()</tt> functions should do in this case.
27273 Suggested resolution:
27277 Throw an exception.
27281 <p><b>Proposed resolution:</b></p>
27288 <h3><a name="1245"></a>1245. <tt>std::hash<string></tt> & co</h3>
27289 <p><b>Section:</b> 20.7.16 [unord.hash] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
27290 <b>Submitter:</b> Paolo Carlini <b>Opened:</b> 2009-10-22 <b>Last modified:</b> 2009-10-25</p>
27291 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#unord.hash">active issues</a> in [unord.hash].</p>
27292 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#unord.hash">issues</a> in [unord.hash].</p>
27293 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
27294 <p><b>Discussion:</b></p>
27296 In 20.7.16 [unord.hash], <tt>operator()</tt> is specified as
27297 taking the argument by value. Moreover, it is said that <tt>operator()</tt> shall
27298 not throw exceptions.
27302 However, for the specializations for class types, like <tt>string</tt>, <tt>wstring</tt>,
27303 etc, the former requirement seems suboptimal from the performance point
27304 of view (a specific PR has been filed about this in the GCC Bugzilla)
27305 and, together with the latter requirement, hard if not impossible to
27306 fulfill. It looks like pass by const reference should be allowed in such
27311 <p><b>Proposed resolution:</b></p>
27313 Add to 20.7.16 [unord.hash]/2:
27317 <pre>namespace std {
27318 template <class T>
27319 struct hash : public std::unary_function<T, std::size_t> {
27320 std::size_t operator()(T val) const;
27326 The return value of <tt>operator()</tt> is unspecified, except that
27327 equal arguments shall yield the same result. <tt>operator()</tt> shall
27328 not throw exceptions. <ins>It is also unspecified whether
27329 <tt>operator()</tt> of <tt>std::hash</tt> specializations for class
27330 types takes its argument by value or const reference.</ins>
27339 <h3><a name="1246"></a>1246. <tt>vector::resize()</tt> missing efficiency guarantee</h3>
27340 <p><b>Section:</b> 23.3.6.2 [vector.capacity] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
27341 <b>Submitter:</b> David Abrahams <b>Opened:</b> 2009-10-24 <b>Last modified:</b> 2009-10-25</p>
27342 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#vector.capacity">issues</a> in [vector.capacity].</p>
27343 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
27344 <p><b>Discussion:</b></p>
27346 If <tt>v</tt> is a <tt>vector</tt>, I think repeated calls to
27347 <tt>v.resize( v.size() + 1 )</tt> should be amortized O(1), but it's not
27348 clear that's true from the text of the standard:
27351 <blockquote><pre>void resize(size_type sz);
27354 <i>Effects:</i> If <tt>sz < size()</tt>, equivalent to <tt>erase(begin() + sz, end());</tt>. If
27355 <tt>size() < sz</tt>, appends <tt>sz - size()</tt> default constructed elements to the
27361 Seems to me if we used <tt>push_back</tt> instead of appends, we might be giving
27362 the guarantee I'd like. Thoughts?
27366 <p><b>Proposed resolution:</b></p>
27368 In 23.3.6.2 [vector.capacity]/10, change
27371 <blockquote><pre>void resize(size_type sz);
27374 <i>Effects:</i> If <tt>sz < size()</tt>, equivalent to <tt>erase(begin() + sz, end());</tt>. If
27375 <tt>size() < sz</tt>, <del>appends <tt>sz - size()</tt> default constructed elements to the
27377 <ins>equivalent to <tt>sz - size()</tt> consecutive evaluations of <tt>push_back(T())</tt></ins>.
27387 <h3><a name="1247"></a>1247. <tt>auto_ptr</tt> is overspecified</h3>
27388 <p><b>Section:</b> D.10.1 [auto.ptr] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#Review">Review</a>
27389 <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-10-24 <b>Last modified:</b> 2009-11-06</p>
27390 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#auto.ptr">issues</a> in [auto.ptr].</p>
27391 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#Review">Review</a> status.</p>
27392 <p><b>Discussion:</b></p>
27394 This issue is extracted as the ongoing point-of-interest from earlier
27395 issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#463">463</a>.
27399 <tt>auto_ptr</tt> is overspecified as the <tt>auto_ptr_ref</tt>
27400 implementation detail is formally specified, and the technique is
27401 observable so workarounds for compiler defects can cause a working
27402 implementation of the primary <tt>auto_ptr</tt> template become
27407 <tt>auto_ptr_ref</tt> is a documentation aid to describe a possible
27408 mechanism to implement the class. It should be marked exposition only,
27409 as per similar classes, e.g., <tt>istreambuf_iterator::proxy</tt>
27413 2009-10-25 Daniel adds:
27419 I wonder, whether the revised wording shouldn't be as straight as
27420 for <tt>istream_buf</tt> by adding one further sentence:
27424 An implementation is permitted to provide equivalent functionality without
27425 providing a class with this name.
27430 2009-11-06 Alisdair adds Daniel's suggestion to the proposed wording.
27435 2009-11-06 Howard moves issue to Review.
27441 <p><b>Proposed resolution:</b></p>
27443 Add the term "exposition only" in the following two places:
27447 Ammend D.10.1 [auto.ptr]p2:
27452 <ins>The exposition only class </ins> <del>T</del><ins>t</ins>emplate <tt>auto_ptr_ref</tt>
27453 holds a reference to an <tt>auto_ptr</tt>. It is used by the
27454 <tt>auto_ptr</tt> conversions to allow <tt>auto_ptr</tt> objects to be
27455 passed to and returned from functions.
27456 <ins>An implementation is permitted to provide equivalent functionality
27457 without providing a class with this name.</ins>
27460 <blockquote><pre>namespace std {
27461 template <class Y> struct auto_ptr_ref { }; <ins>// exposition only</ins>
27462 </pre></blockquote>
27470 <h3><a name="1249"></a>1249. basic_ios default ctor</h3>
27471 <p><b>Section:</b> 27.5.4.1 [basic.ios.cons] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
27472 <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2009-10-25 <b>Last modified:</b> 2009-10-26</p>
27473 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#basic.ios.cons">issues</a> in [basic.ios.cons].</p>
27474 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
27475 <p><b>Discussion:</b></p>
27477 The basic_ios default ctor is required to leave the objects members
27478 uninitialized (see below). The paragraph says the object must be
27479 initialized by calling basic_ios::init() before it's destroyed by
27480 I can't find a requirement that it be initialized before calling
27481 any of the class other member functions. Am I not looking in the
27482 right place or that an issue?
27486 2009-10-25 Daniel adds:
27492 I agree, that your wording makes that clearer, but suggest to write
27496 ... calling <tt>basic_ios::init<del>()</del></tt> before ...
27500 Doing so, I recommend to adapt that of <tt>ios_base();</tt> as well, where
27505 <i>Effects:</i> Each <tt>ios_base</tt> member has an indeterminate value
27506 after construction. These members shall be initialized by calling
27507 <tt>basic_ios::init</tt>. If an <tt>ios_base</tt> object is destroyed
27508 before these initializations have taken place, the behavior is
27515 <p><b>Proposed resolution:</b></p>
27517 Change 27.5.2.7 [ios.base.cons] p1:
27520 <blockquote><pre>ios_base();
27523 <i>Effects:</i> Each <tt>ios_base</tt> member has an indeterminate value
27524 after construction. <del>These</del> <ins>The object's</ins> members shall be initialized by calling
27525 <tt>basic_ios::init</tt> <ins>before the object's first use or before
27526 it is destroyed, whichever comes first; otherwise the behavior
27527 is undefined.</ins>. <del>If an <tt>ios_base</tt> object is destroyed
27528 before these initializations have taken place, the behavior is
27534 Change 27.5.4.1 [basic.ios.cons] p2:
27537 <blockquote><pre>basic_ios();
27540 <i>Effects:</i> Constructs an object of class <tt>basic_ios</tt>
27541 (27.5.2.7) leaving its member objects uninitialized. The object shall be
27542 initialized by calling <del>its</del>
27543 <tt><ins>basic_ios::</ins>init</tt> <ins>before its first
27544 use or before it is destroyed, whichever comes first; otherwise the
27545 behavior is undefined.</ins> <del>member function. If it is destroyed
27546 before it has been initialized the behavior is undefined.</del>
27555 <h3><a name="1250"></a>1250. <tt><bitset></tt> still overspecified</h3>
27556 <p><b>Section:</b> 20.3.7 [template.bitset] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
27557 <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2009-10-29 <b>Last modified:</b> 2009-10-29</p>
27558 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#template.bitset">active issues</a> in [template.bitset].</p>
27559 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#template.bitset">issues</a> in [template.bitset].</p>
27560 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
27561 <p><b>Discussion:</b></p>
27563 Issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1227">1227</a> — <tt><bitset></tt> synopsis overspecified makes the observation
27564 that <tt>std::bitset</tt>, and in fact the whole library, may be implemented
27565 without needing to <tt>#include <stdexcept></tt> in any library header. The
27566 proposed resolution removes the <tt>#include <stdexcept></tt> directive from
27571 I'd like to add that the <tt><bitset></tt> header (as well as the rest of
27572 the library) has also been implemented without #including the
27573 <tt><cstddef></tt> header in any library header. In the case of <tt>std::bitset</tt>,
27574 the template is fully usable (i.e., it may be instantiated and all
27575 its member functions may be used) without ever mentioning <tt>size_t</tt>.
27576 In addition, just like no library header except for <tt><bitset></tt>
27577 <tt>#includes <stdexcept></tt> in its synopsis, no header but <tt><bitset></tt>
27578 <tt>#includes <cstddef></tt> either.
27582 Thus I suggest that the <tt>#include <cstddef></tt> directive be similarly
27583 removed from the synopsis of <tt><bitset></tt>.
27587 <p><b>Proposed resolution:</b></p>
27589 Change 20.3.7 [template.bitset]:
27592 <blockquote><pre><del>#include <cstddef> // for size_t</del>
27593 #include <string>
27594 #include <iosfwd> // for istream, ostream
27597 </pre></blockquote>
27604 <h3><a name="1251"></a>1251. move constructing <tt>basic_stringbuf</tt></h3>
27605 <p><b>Section:</b> 27.8.1.1 [stringbuf.cons] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
27606 <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2009-10-29 <b>Last modified:</b> 2009-10-29</p>
27607 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#stringbuf.cons">issues</a> in [stringbuf.cons].</p>
27608 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
27609 <p><b>Discussion:</b></p>
27611 I just came across issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1204">1204</a> -- Global permission to move, which
27612 seems to address the concern raised by the example in c++std-lib-25030.
27615 IIUC, the example violates the permission to assume that arguments
27616 bound to rvalue references are unnamed temporaries granted to
27617 implementations by the resolution of issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1204">1204</a> - Global permission
27622 I.e., the <tt>ostringstream(ostringstream &&rhs)</tt> ctor can leave the <tt>rhs</tt>
27623 pointers pointing to the newly constructed object's buffer just as
27624 long as the dtor doesn't change or invalidate the buffer. The caller
27625 may not make any assumptions about rhs after the move beyond it being
27626 safe to destroy or reassign.
27630 So unless I misunderstood something, I still think the <tt>basic_stringbuf</tt>
27631 move ctor is overspecified. Specifically, I think the third sentence
27632 in the Effects clause and the last 6 bullets in the Postconditions
27633 clause can, and IMO should, be stricken.
27637 <p><b>Proposed resolution:</b></p>
27639 Strike from 27.8.1.1 [stringbuf.cons]:
27642 <blockquote><pre>basic_stringbuf(basic_stringbuf&& rhs);
27646 <i>Effects:</i> Move constructs from the rvalue <tt>rhs</tt>. It is
27647 implementation-defined whether the sequence pointers in <tt>*this</tt>
27648 (<tt>eback()</tt>, <tt>gptr()</tt>, <tt>egptr()</tt>, <tt>pbase()</tt>,
27649 <tt>pptr()</tt>, <tt>epptr()</tt>) obtain the values which <tt>rhs</tt>
27650 had. <del>Whether they do or not, <tt>*this</tt> and <tt>rhs</tt> reference
27651 separate buffers (if any at all) after the construction.</del> The openmode,
27652 locale and any other state of <tt>rhs</tt> is also copied.
27656 <i>Postconditions:</i> Let <tt>rhs_p</tt> refer to the state of
27657 <tt>rhs</tt> just prior to this construction and let <tt>rhs_a</tt>
27658 referto the state of <tt>rhs</tt> just after this construction.
27662 <tt>str() == rhs_p.str()</tt>
27665 <tt>gptr() - eback() == rhs_p.gptr() - rhs_p.eback()</tt>
27668 <tt>egptr() - eback() == rhs_p.egptr() - rhs_p.eback()</tt>
27671 <tt>pptr() - pbase() == rhs_p.pptr() - rhs_p.pbase()</tt>
27674 <tt>epptr() - pbase() == rhs_p.epptr() - rhs_p.pbase()</tt>
27677 if <tt>(eback()) eback() != rhs_a.eback()</tt>
27680 if <tt>(gptr()) gptr() != rhs_a.gptr()</tt>
27683 if <tt>(egptr()) egptr() != rhs_a.egptr()</tt>
27686 if <tt>(pbase()) pbase() != rhs_a.pbase()</tt>
27689 if <tt>(pptr()) pptr() != rhs_a.pptr()</tt>
27692 if <tt>(epptr()) epptr() != rhs_a.epptr()</tt>
27704 <h3><a name="1252"></a>1252. <tt>wbuffer_convert::state_type</tt> inconsistency</h3>
27705 <p><b>Section:</b> 22.3.3.2.3 [conversions.buffer] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
27706 <b>Submitter:</b> Bo Persson <b>Opened:</b> 2009-10-21 <b>Last modified:</b> 2009-10-31</p>
27707 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
27708 <p><b>Discussion:</b></p>
27710 The synopisis for <tt>wbuffer_convert</tt> 22.3.3.2.3 [conversions.buffer]/2 contains
27713 <blockquote><pre>typedef typename Tr::state_type state_type;
27714 </pre></blockquote>
27717 making <tt>state_type</tt> a synonym for (possibly) some
27718 <tt>char_traits<x>::state_type</tt>.
27722 However, in paragraph 9 of the same section, we have
27725 <blockquote><pre>typedef typename Codecvt::state_type state_type;
27729 The type shall be a synonym for <tt>Codecvt::state_type</tt>.
27734 From what I can see, it might be hard to implement
27735 <tt>wbuffer_convert</tt> if the types were not both
27736 <tt>std::mbstate_t</tt>, but I cannot find a requirement that they must
27741 <p><b>Proposed resolution:</b></p>
27748 <h3><a name="1253"></a>1253. invalidation of iterators and <tt>emplace</tt> vs. <tt>insert</tt> inconsistence in assoc. containers</h3>
27749 <p><b>Section:</b> 23.2.4 [associative.reqmts] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
27750 <b>Submitter:</b> Boris Dušek <b>Opened:</b> 2009-10-24 <b>Last modified:</b> 2009-10-31</p>
27751 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#associative.reqmts">active issues</a> in [associative.reqmts].</p>
27752 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#associative.reqmts">issues</a> in [associative.reqmts].</p>
27753 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
27754 <p><b>Discussion:</b></p>
27756 In the latest published draft
27757 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2960.pdf">N2960</a>,
27758 section 23.2.4 [associative.reqmts], paragraph 8, it is specifies
27759 that that <tt>insert</tt> does not invalidate any iterators. As per
27760 23.2.1 [container.requirements.general], paragraph 12, this holds
27761 true not only for <tt>insert</tt>, but <tt>emplace</tt> as well. This
27762 gives the <tt>insert</tt> member a special treatment w.r.t.
27763 <tt>emplace</tt> member in 23.2.4 [associative.reqmts], par. 8,
27764 since both modify the container. For the sake of consistency, in 23.2.4 [associative.reqmts], par. 8: either reference to
27765 <tt>insert</tt> should be removed (i.e. count on 23.2.1 [container.requirements.general], par. 12), or reference to
27766 <tt>emplace</tt> be added (i.e. mention all members of assoc. containers
27771 <p><b>Proposed resolution:</b></p>
27780 <h3><a name="1254"></a>1254. Misleading sentence in <tt>vector<bool>::flip</tt></h3>
27781 <p><b>Section:</b> 23.3.7 [vector.bool] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
27782 <b>Submitter:</b> Christopher Jefferson <b>Opened:</b> 2009-11-01 <b>Last modified:</b> 2009-11-01</p>
27783 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#vector.bool">issues</a> in [vector.bool].</p>
27784 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
27785 <p><b>Discussion:</b></p>
27787 The effects of <tt>vector<bool>::flip</tt> has the line:
27791 It is unspecified whether the function has any effect on allocated but
27796 While this is technically true, it is misleading, as any member function
27797 in any standard container may change unused but allocated memory. Users
27798 can never observe such changes as it would also be undefined behaviour
27799 to read such memory.
27803 <p><b>Proposed resolution:</b></p>
27805 Strike second sentence from the definition of <tt>vector<bool>::flip()</tt>,
27806 23.3.7 [vector.bool], paragraph 5.
27810 <i>Effects:</i> Replaces each element in the container with its complement.
27811 <del>It is unspecified whether the function has any effect on allocated
27812 but unused bits.</del>
27820 <h3><a name="1255"></a>1255. <tt>declval</tt> should be added to the library</h3>
27821 <p><b>Section:</b> 20.3 [utility] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
27822 <b>Submitter:</b> Daniel Krügler <b>Opened:</b> 2009-11-03 <b>Last modified:</b> 2009-11-04</p>
27823 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
27824 <p><b>Discussion:</b></p>
27826 During the Santa Cruz meeting it was decided to split off the provision
27827 of the library utility <tt>value()</tt> proposed in <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2979.html">N2979</a>
27828 from the concrete request of the
27829 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2939.html#uk300">UK 300</a>
27831 The provision of a new library component that allows the production of
27832 values in unevaluated expressions is considered as important
27833 to realize constrained templates in C++0x where concepts are not
27838 The following proposed resolution is an improvement over that suggested in
27839 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2958.html">N2958</a>,
27840 because the proposed component can now be defined without loss of
27841 general usefulness and any <i>use</i> by user-code will make the program ill-formed.
27842 A possible prototype implementation that satisfies the core language
27847 <blockquote><pre>template<class T>
27848 struct declval_protector {
27849 static const bool stop = false;
27850 static typename std::add_rvalue_reference<T>::type delegate(); <font color="#c80000">// undefined</font>
27853 template<class T>
27854 typename std::add_rvalue_reference<T>::type declval() {
27855 static_assert(declval_protector<T>::stop, "declval() must not be used!");
27856 return declval_protector<T>::delegate();
27858 </pre></blockquote>
27861 Further-on the earlier suggested name <tt>value()</tt> has been changed to <tt>declval()</tt>
27862 after discussions with committee members.
27866 Finally the suggestion shown below demonstrates that it can simplify
27867 existing standard wording by directly using it in the library
27868 specification, and that it also improves an overlooked corner case for
27869 <tt>common_type</tt> by adding support for <tt>cv void</tt>.
27873 <p><b>Proposed resolution:</b></p>
27875 The following edit assumes that the earlier component identity
27876 has been removed as part of applying the solution of <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#939">939</a>,
27877 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2951.html">N2951</a>,
27879 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2984.html">N2984</a>.
27880 Note that the proposal does not depend on this application,
27881 but it just simplifies the editorial representation
27888 Change 20.3 [utility], header <tt><utility></tt> synopsis
27892 <blockquote><pre>// 20.3.2, forward/move:
27893 template <class T, class U> T&& forward(U&& u);;
27894 template <class T> typename remove_reference<T>::type&& move(T&&);
27896 <ins>// 20.3.3, declval:</ins>
27897 <ins>template <class T> typename add_rvalue_reference<T>::type declval(); // for unused context</ins>
27898 </pre></blockquote>
27903 Immediately after the current section 20.3.3 [forward] insert a
27907 <ins>20.3.3 Function template declval [declval]</ins>
27910 <ins>The library provides the function template <tt>declval</tt> to simplify
27911 the definition of expressions in
27912 unevaluated and unused contexts (3.2 [basic.def.odr], 5 [expr]). The
27913 template parameter <tt>T</tt> of <tt>declval</tt> may
27914 be an incomplete type.</ins>
27917 <pre><ins>template <class T> typename add_rvalue_reference<T>::type declval(); // for unused context</ins>
27922 <ins><i>Remarks:</i> If this function is used according to 3.2 [basic.def.odr],
27923 the program shall be ill-formed.</ins>
27927 <ins>[<i>Example:</i></ins>
27930 <blockquote><pre><ins>
27931 template<class To, class From>
27932 decltype(static_cast<To>(declval<From>())) convert(From&&);
27933 </ins></pre></blockquote>
27937 declares a function template <tt>convert</tt>, which does only participate in
27938 overloading, if the type <tt>From</tt> can be
27939 explicitly casted to type <tt>To</tt> — <i>end example</i>]</ins>
27947 This bullet just makes clear that after applying <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2984.html">N2984</a>, the changes in 20.6.4.3 [meta.unary.prop], before
27948 table Type property queries should <em>not</em> use <tt>declval</tt>,
27949 because the well-formedness requirement of the specification of
27950 <tt>is_constructible</tt> would become more complicated, because we
27951 would need to make sure that the expression <i>CE</i> is checked in an
27952 unevaluated context.
27958 Also 20.6.5 [meta.rel]/4 is not modified similar to the previous bullet,
27960 the stricter requirements of not using <tt>declval()</tt> the well-formedness condition
27961 would be harder to specify. The following changes are only editorial ones (e.g.
27962 the removal of the duplicate declaration of <tt>create()</tt>):
27967 Given the following function prototype:
27970 <blockquote><pre>template <class T>
27971 typename add_rvalue_reference<T>::type create();
27972 </pre></blockquote>
27975 the predicate condition for a template specialization
27976 <tt>is_convertible<From, To></tt> shall be satisfied if and only
27977 if the return expression in the following code would be well-formed,
27979 im<del>m</del>plicit conversions to the return type of the function:
27982 <blockquote><pre><del>template <class T>
27983 typename add_rvalue_reference<T>::type create();</del>
27985 return create<From>();
27987 </pre></blockquote>
27993 Change the entry in column "Comments" for <tt>common_type</tt> in Table 51 —
27994 Other transformations (20.6.7 [meta.trans.other]):
27998 NB: This wording change extends the type domain of <tt>common_type</tt> for <tt>cv
27999 void => cv void</tt> transformations and thus makes <tt>common_type</tt> usable for
28000 all binary type combinations that are supported by <tt>is_convertible</tt>
28005 The member typedef <tt>type</tt> shall be defined as set out below. All
28006 types in the parameter pack <tt>T</tt> shall be complete <ins>or
28007 (possibly cv-qualified) <tt>void</tt></ins>. A program may specialize
28008 this trait if at least one template parameter in the specialization is a
28009 user-defined type. [<i>Note:</i> Such specializations are needed when
28010 only explicit conversions are desired among the template arguments.
28011 — <i>end note</i>]
28017 Change 20.6.7 [meta.trans.other]/3 as indicated:
28021 NB: This wording change is more than an editorial simplification of
28022 the definition of <tt>common_type</tt>: It also extends its usefulness for <tt>cv
28023 void</tt> types as outlined above
28029 The nested typedef <tt>common_type::type</tt> shall be defined as follows:
28036 <pre>template <class T, class U>
28037 struct common_type<T, U> {
28039 static T&& __t();
28040 static U&& __u();
28042 typedef decltype(true ? <del>__t</del><ins>declval<T></ins>() : <del>__u</del><ins>declval<U></ins>()) type;
28056 <h3><a name="1256"></a>1256. <tt>weak_ptr</tt> comparison functions should be removed</h3>
28057 <p><b>Section:</b> 20.8.15.3 [util.smartptr.weak] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
28058 <b>Submitter:</b> Daniel Krügler <b>Opened:</b> 2009-11-04 <b>Last modified:</b> 2009-11-04</p>
28059 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
28060 <p><b>Discussion:</b></p>
28062 Additional to the necessary cleanup of the description of the the
28063 <tt>weak_ptr</tt> component from 20.8.15.3 [util.smartptr.weak]
28064 described in <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1231">1231</a> it turns out that the currently deleted
28065 comparison functions of <tt>weak_ptr</tt> are not needed at all: There
28066 is no safe-bool conversion from <tt>weak_ptr</tt>, and it won't silently
28067 chose a conversion to <tt>shared_ptr</tt>.
28071 <p><b>Proposed resolution:</b></p>
28073 Change 20.8.15.3 [util.smartptr.weak]/1 as indicated:
28076 <blockquote><pre>namespace std {
28077 template<class T> class weak_ptr {
28080 <del>// comparisons</del>
28081 <del>template<class Y> bool operator<(weak_ptr<Y> const&) const = delete;</del>
28082 <del>template<class Y> bool operator<=(weak_ptr<Y> const&) const = delete;</del>
28083 <del>template<class Y> bool operator>(weak_ptr<Y> const&) const = delete;</del>
28084 <del>template<class Y> bool operator>=(weak_ptr<Y> const&) const = delete;</del>
28087 </pre></blockquote>
28094 <h3><a name="1257"></a>1257. Header <ios> still contains a <code>concept_map</code></h3>
28095 <p><b>Section:</b> 27.5 [iostreams.base] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
28096 <b>Submitter:</b> Beman Dawes <b>Opened:</b> 2009-11-04 <b>Last modified:</b> 2009-11-04</p>
28097 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#iostreams.base">issues</a> in [iostreams.base].</p>
28098 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
28099 <p><b>Discussion:</b></p>
28101 The current WP still contains a <tt>concept_map</tt>.
28105 <p><b>Proposed resolution:</b></p>
28107 Change Iostreams base classes 27.5 [iostreams.base], Header <ios> synopsis,
28111 <blockquote><pre><del>concept_map ErrorCodeEnum<io_errc> { };</del>
28112 <ins>template <> struct is_error_code_enum<io_errc> : true_type { }</ins>
28113 error_code make_error_code(io_errc e);
28114 error_condition make_error_condition(io_errc e);
28115 const error_category& iostream_category();
28116 </pre></blockquote>
28124 <h3><a name="1258"></a>1258. std::function Effects clause impossible to satisfy</h3>
28125 <p><b>Section:</b> 20.7.15.2.2 [func.wrap.func.mod] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
28126 <b>Submitter:</b> Daniel Krügler <b>Opened:</b> 2009-11-05 <b>Last modified:</b> 2009-11-05</p>
28127 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
28128 <p><b>Discussion:</b></p>
28130 As of 20.7.15.2.2 [func.wrap.func.mod]/2+ we have the following
28131 prototype description:
28134 <blockquote><pre>template<class F, Allocator Alloc>
28135 requires Callable<F, ArgTypes...>
28136 && Convertible<Callable<F, ArgTypes...>::result_type, R>
28137 void assign(F, const Alloc&);
28140 <i>Effects:</i> <tt>function(f, a).swap(*this)</tt>
28145 Two things: First the concept debris needs to be removed, second and
28146 much more importantly, the effects clause is now impossible to satisfy,
28147 because there is no constructor that would match the parameter sequence
28148 (<tt>FunctionObject</tt>, <tt>Allocator</tt>) [plus the fact that no
28149 <tt>f</tt> and no <tt>a</tt> is part of the signature]. The most
28150 probable candidate is
28153 <blockquote><pre>template<class F, class A> function(allocator_arg_t, const A&, F);
28154 </pre></blockquote>
28157 and the effects clause needs to be adapted to use this signature.
28161 <p><b>Proposed resolution:</b></p>
28163 Change in 20.7.15.2.2 [func.wrap.func.mod] the complete prototype description as
28168 the editor: Shouldn't there a paragraph number in front of the Effects clause?
28172 <blockquote><pre><del>template<class F, Allocator Alloc>
28173 requires Callable<F, ArgTypes...>
28174 && Convertible<Callable<F, ArgTypes...>::result_type, R>
28175 void assign(F, const Alloc&);</del>
28176 <ins>template<class F, class A> void assign(F f, const A& a);</ins>
28179 <ins>3</ins> <i>Effects:</i> <tt>function(<del>f, a</del><ins>allocator_arg, a,
28180 f</ins>).swap(*this)</tt>
28189 <h3><a name="1259"></a>1259. Should initializer-list constructors move elements?</h3>
28190 <p><b>Section:</b> 23.2.3 [sequence.reqmts] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
28191 <b>Submitter:</b> Sean Hunt <b>Opened:</b> 2009-11-05 <b>Last modified:</b> 2009-11-06</p>
28192 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#sequence.reqmts">active issues</a> in [sequence.reqmts].</p>
28193 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#sequence.reqmts">issues</a> in [sequence.reqmts].</p>
28194 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
28195 <p><b>Discussion:</b></p>
28197 According to 23.2.3 [sequence.reqmts], <tt>X(il)</tt> is
28198 equivalent to <tt>X(il.begin(), il.end())</tt>. Should it instead be
28199 equivalent to <tt>X(move_iterator(il.begin()),
28200 move_iterator(il.end()))</tt> so that needless copies are not made? This
28201 doesn't seem ideal either - it may make more sense to provide two
28202 overloads for the constructor, one for move and one for copy.
28206 <p><b>Proposed resolution:</b></p>
28215 <h3><a name="1260"></a>1260. <tt>is_constructible<int*,void*></tt> reports true</h3>
28216 <p><b>Section:</b> 20.6.4.3 [meta.unary.prop] <b>Status:</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#New">New</a>
28217 <b>Submitter:</b> Peter Dimov <b>Opened:</b> 2009-11-07 <b>Last modified:</b> 2009-11-08</p>
28218 <p><b>View other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index-open.html#meta.unary.prop">active issues</a> in [meta.unary.prop].</p>
28219 <p><b>View all other</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-index.html#meta.unary.prop">issues</a> in [meta.unary.prop].</p>
28220 <p><b>View all issues with</b> <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-status.html#New">New</a> status.</p>
28221 <p><b>Discussion:</b></p>
28223 The specification of <tt>is_constructible<T,Args...></tt> in
28224 <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n3000.pdf">N3000</a>
28228 <blockquote><pre>static_cast<T>(create<Args>()...)
28229 </pre></blockquote>
28232 for the one-argument case, but <tt>static_cast</tt> also permits
28233 unwanted conversions such as <tt>void*</tt> to <tt>T*</tt> and
28234 <tt>Base*</tt> to <tt>Derived*</tt>.
28238 <p><b>Proposed resolution:</b></p>
28240 Change 20.6.4.3 [meta.unary.prop], p6:
28245 the predicate condition for a template specialization
28246 <tt>is_constructible<T, Args></tt> shall be satisfied, if and only
28247 if the following <del>expression <i>CE</i></del> <ins>variable
28248 definition</ins> would be well-formed:
28254 if <tt>sizeof...(Args) == <ins>0</ins> <del>1</del></tt><del>, the expression</del>:
28256 <blockquote><pre><del>static_cast<T>(create<Args>()...)</del>
28258 </pre></blockquote>
28262 otherwise <del>the expression</del>:
28264 <blockquote><pre>T<ins> t</ins>(create<Args>()...);
28265 </pre></blockquote>